summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.h
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-04-19 01:19:54 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-04-22 01:14:13 +0200
commit698821bda32eb9958e105c38087b49b6f307128d (patch)
tree204fecafd4a4b33a1b9ce66cdffc2febd8289402 /src/gallium/drivers/radeonsi/si_state.h
parentbb1e647adaff7f9f379501864918d92f5fe3e2a6 (diff)
downloadexternal_mesa3d-698821bda32eb9958e105c38087b49b6f307128d.zip
external_mesa3d-698821bda32eb9958e105c38087b49b6f307128d.tar.gz
external_mesa3d-698821bda32eb9958e105c38087b49b6f307128d.tar.bz2
radeonsi: rework polygon stippling to use constant buffer instead of texture
add it to the RW_BUFFERS descriptor array now the slot masks don't have to have 64 bits Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index 1571bad..9a2a7fd 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -146,12 +146,8 @@ struct si_shader_data {
uint32_t sh_base[SI_NUM_SHADERS];
};
-/* User sampler views: 0..31
- * Polygon stipple tex: 32
- */
#define SI_NUM_USER_SAMPLERS 32 /* AKA OpenGL textures units per shader */
-#define SI_POLY_STIPPLE_SAMPLER SI_NUM_USER_SAMPLERS
-#define SI_NUM_SAMPLERS (SI_POLY_STIPPLE_SAMPLER + 1)
+#define SI_NUM_SAMPLERS SI_NUM_USER_SAMPLERS
/* User constant buffers: 0..15
* Driver state constants: 16
@@ -182,6 +178,8 @@ enum {
SI_VS_STREAMOUT_BUF2,
SI_VS_STREAMOUT_BUF3,
+ SI_PS_CONST_POLY_STIPPLE,
+
SI_NUM_RW_BUFFERS,
};