mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
Add register defines for hw binning
This commit is contained in:
parent
c235cc71a2
commit
500193dca8
1 changed files with 25 additions and 0 deletions
|
|
@ -112,6 +112,20 @@
|
|||
/* 3DSTATE_CHROMA_KEY */
|
||||
|
||||
/* 3DSTATE_CLEAR_PARAMETERS, p150 */
|
||||
/*
|
||||
* Sets the color, depth and stencil clear values used by the
|
||||
* CLEAR_RECT and ZONE_INIT primitive types, respectively. These
|
||||
* primitives set override most 3d state and only take a minimal x/y
|
||||
* vertex. The color/z/stencil information is supplied here and
|
||||
* therefore cannot vary per vertex.
|
||||
*/
|
||||
#define _3DSTATE_CLEAR_PARAMETERS (CMD_3D | (0x1d<<24) | (0x9c<<16) | 5)
|
||||
/* Dword 1 */
|
||||
#define CLEARPARAM_CLEAR_RECT (1 << 16)
|
||||
#define CLEARPARAM_ZONE_INIT (0 << 16)
|
||||
#define CLEARPARAM_WRITE_COLOR (1 << 2)
|
||||
#define CLEARPARAM_WRITE_DEPTH (1 << 1)
|
||||
#define CLEARPARAM_WRITE_STENCIL (1 << 0)
|
||||
|
||||
/* 3DSTATE_CONSTANT_BLEND_COLOR, p153 */
|
||||
#define _3DSTATE_CONST_BLEND_COLOR_CMD (CMD_3D | (0x1d<<24) | (0x88<<16))
|
||||
|
|
@ -424,6 +438,17 @@
|
|||
|
||||
#define S7_DEPTH_OFFSET_CONST_MASK ~0
|
||||
|
||||
|
||||
/* Helper macros for blend factors
|
||||
*/
|
||||
#define DST_BLND_FACT(f) ((f)<<S6_CBUF_DST_BLEND_FACT_SHIFT)
|
||||
#define SRC_BLND_FACT(f) ((f)<<S6_CBUF_SRC_BLEND_FACT_SHIFT)
|
||||
#define DST_ABLND_FACT(f) ((f)<<IAB_DST_FACTOR_SHIFT)
|
||||
#define SRC_ABLND_FACT(f) ((f)<<IAB_SRC_FACTOR_SHIFT)
|
||||
|
||||
|
||||
|
||||
|
||||
/* 3DSTATE_MAP_DEINTERLACER_PARAMETERS */
|
||||
|
||||
/* 3DSTATE_MAP_PALETTE_LOAD_32, p206 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue