summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-02-11 21:06:33 +0100
committerMarek Olšák <[email protected]>2016-02-21 21:08:58 +0100
commit10fa269f4f8e3d58c10e7b3ab317e2d65f8f2f3c (patch)
tree07bc3f3793a5392561311bcdaf9ed34de3a10054 /src/gallium/drivers/radeonsi/si_shader.h
parent9aaf28da629e025f652c7ff63750ad8ee513ff42 (diff)
radeonsi: use smaller types for some si_shader members
in order to decrease the shader size for a shader cache. v2: add & use SI_MAX_VS_OUTPUTS Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.h')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index ee81621a702..88602dcd811 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -75,6 +75,8 @@
struct radeon_shader_binary;
struct radeon_shader_reloc;
+#define SI_MAX_VS_OUTPUTS 40
+
#define SI_SGPR_RW_BUFFERS 0 /* rings (& stream-out, VS only) */
#define SI_SGPR_CONST_BUFFERS 2
#define SI_SGPR_SAMPLERS 4 /* images & sampler states interleaved */
@@ -359,10 +361,10 @@ struct si_shader {
ubyte num_input_vgprs;
char face_vgpr_index;
- unsigned vs_output_param_offset[PIPE_MAX_SHADER_OUTPUTS];
+ ubyte vs_output_param_offset[SI_MAX_VS_OUTPUTS];
bool uses_instanceid;
- unsigned nr_pos_exports;
- unsigned nr_param_exports;
+ ubyte nr_pos_exports;
+ ubyte nr_param_exports;
};
struct si_shader_part {