summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-02-11 15:49:34 +0100
committerMarek Olšák <[email protected]>2016-02-21 21:08:58 +0100
commitff360a52e6700d1085876169ed3b328910b394de (patch)
treee9f935330411acae9f913d6e8433dfe00acef972 /src/gallium/drivers/radeonsi/si_shader.h
parent1132910e50951c5472d3d85ff7b2771af1885e25 (diff)
radeonsi: implement binary shaders & shader cache in memory (v2)
v2: handle _mesa_hash_table_insert failure other cosmetic changes 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h
index b299b7b2c0a..ff5c24d8918 100644
--- a/src/gallium/drivers/radeonsi/si_shader.h
+++ b/src/gallium/drivers/radeonsi/si_shader.h
@@ -364,8 +364,10 @@ struct si_shader {
struct r600_resource *bo;
struct r600_resource *scratch_bo;
union si_shader_key key;
- struct radeon_shader_binary binary;
bool is_binary_shared;
+
+ /* The following data is all that's needed for binary shaders. */
+ struct radeon_shader_binary binary;
struct si_shader_config config;
struct si_shader_info info;
};