Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files60
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- Automake.inc
- Makefile.am
- Makefile.in
- Makefile.sources
- SConscript
- sp_buffer.c
- sp_buffer.h
- sp_clear.c
- sp_clear.h
- sp_compute.c
- sp_context.c
- sp_context.h
- sp_draw_arrays.c
- sp_fence.c
- sp_fence.h
- sp_flush.c
- sp_flush.h
- sp_fs.h
- sp_fs_exec.c
- sp_image.c
- sp_image.h
- sp_limits.h
- sp_prim_vbuf.c
- sp_prim_vbuf.h
- sp_public.h
- sp_quad.h
- sp_quad_blend.c
- sp_quad_depth_test.c
- sp_quad_depth_test_tmp.h
- sp_quad_fs.c
- sp_quad_pipe.c
- sp_quad_pipe.h
- sp_quad_stipple.c
- sp_query.c
- sp_query.h
- sp_screen.c
- sp_screen.h
- sp_setup.c
- sp_setup.h
- sp_state.h
- sp_state_blend.c
- sp_state_clip.c
- sp_state_derived.c
- sp_state_image.c
- sp_state_rasterizer.c
- sp_state_sampler.c
- sp_state_shader.c
- sp_state_so.c
- sp_state_surface.c
- sp_state_vertex.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Additions/3D/mesa/mesa-17.3.9/src/gallium/drivers/softpipe/sp_quad.h
Text · 3,246 bytes/**************************************************************************
*
* Copyright 2007 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
**************************************************************************/
/* Authors: Keith Whitwell <[email protected]>
*/
#ifndef SP_QUAD_H
#define SP_QUAD_H
#include "pipe/p_state.h"
#include "tgsi/tgsi_exec.h"
#define QUAD_PRIM_POINT 1
#define QUAD_PRIM_LINE 2
#define QUAD_PRIM_TRI 3
/* The rasterizer generates 2x2 quads of fragment and feeds them to
* the current fp_machine (see below).
* Remember that Y=0=top with Y increasing down the window.
*/
#define QUAD_TOP_LEFT 0
#define QUAD_TOP_RIGHT 1
#define QUAD_BOTTOM_LEFT 2
#define QUAD_BOTTOM_RIGHT 3
#define MASK_TOP_LEFT (1 << QUAD_TOP_LEFT)
#define MASK_TOP_RIGHT (1 << QUAD_TOP_RIGHT)
#define MASK_BOTTOM_LEFT (1 << QUAD_BOTTOM_LEFT)
#define MASK_BOTTOM_RIGHT (1 << QUAD_BOTTOM_RIGHT)
#define MASK_ALL 0xf
/**
* Quad stage inputs (pos, coverage, front/back face, etc)
*/
struct quad_header_input
{
int x0, y0; /**< quad window pos, always even */
unsigned layer;
unsigned viewport_index;
float coverage[TGSI_QUAD_SIZE]; /**< fragment coverage for antialiasing */
unsigned facing:1; /**< Front (0) or back (1) facing? */
unsigned prim:2; /**< QUAD_PRIM_POINT, LINE, TRI */
};
/**
* Quad stage inputs/outputs.
*/
struct quad_header_inout
{
unsigned mask:4;
};
/**
* Quad stage outputs (color & depth).
*/
struct quad_header_output
{
/** colors in SOA format (rrrr, gggg, bbbb, aaaa) */
float color[PIPE_MAX_COLOR_BUFS][TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE];
float depth[TGSI_QUAD_SIZE];
uint8_t stencil[TGSI_QUAD_SIZE];
};
/**
* Encodes everything we need to know about a 2x2 pixel block. Uses
* "Channel-Serial" or "SoA" layout.
*/
struct quad_header {
struct quad_header_input input;
struct quad_header_inout inout;
struct quad_header_output output;
/* Redundant/duplicated:
*/
const struct tgsi_interp_coef *posCoef;
const struct tgsi_interp_coef *coef;
};
#endif /* SP_QUAD_H */