diff options
author | Marek Olšák <[email protected]> | 2015-02-03 12:49:19 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-02-04 14:34:13 +0100 |
commit | 6895dfb1843e8039e8c2f40c65362cdc40165681 (patch) | |
tree | 1c3ddfbc0a2f31936d288823922645fb18148adb /src | |
parent | 1fe7ba8c6939ecaaa6c7e5cb6ce351167c5b6519 (diff) |
radeonsi: add polygon stipple texture slot
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index d2feb7da47e..263728963d4 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -109,14 +109,17 @@ union si_state { struct si_pm4_state *array[0]; }; -#define SI_NUM_USER_SAMPLERS 16 /* AKA OpenGL textures units per shader */ +#define SI_NUM_USER_SAMPLERS 16 /* AKA OpenGL textures units per shader */ +#define SI_POLY_STIPPLE_SAMPLER SI_NUM_USER_SAMPLERS +#define SI_NUM_SAMPLERS (SI_POLY_STIPPLE_SAMPLER + 1) /* User sampler views: 0..15 - * FMASK sampler views: 16..31 (no sampler states) + * Polygon stipple tex: 16 + * FMASK sampler views: 17..33 (no sampler states) */ -#define SI_FMASK_TEX_OFFSET SI_NUM_USER_SAMPLERS -#define SI_NUM_SAMPLER_VIEWS (SI_FMASK_TEX_OFFSET + SI_NUM_USER_SAMPLERS) -#define SI_NUM_SAMPLER_STATES SI_NUM_USER_SAMPLERS +#define SI_FMASK_TEX_OFFSET SI_NUM_SAMPLERS +#define SI_NUM_SAMPLER_VIEWS (SI_FMASK_TEX_OFFSET + SI_NUM_SAMPLERS) +#define SI_NUM_SAMPLER_STATES SI_NUM_SAMPLERS /* User constant buffers: 0..15 * Driver state constants: 16 |