summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_context.h
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2017-03-14 22:25:17 +0100
committerChristian Gmeiner <[email protected]>2017-04-05 19:57:59 +0200
commitecc2474e59915bd0bd564ef0d43743432dfe6262 (patch)
tree2f73e930878a8b7c67825ee6615d4ccc1266191b /src/gallium/drivers/etnaviv/etnaviv_context.h
parent65e9bd2703f2fce29321f3512d4a2673df2556d3 (diff)
etnaviv: add struct etna_shader_state
Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_context.h')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_context.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.h b/src/gallium/drivers/etnaviv/etnaviv_context.h
index 81acc92eb01..b847b652d1d 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_context.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_context.h
@@ -79,6 +79,10 @@ struct etna_vertexbuf_state {
uint32_t enabled_mask;
};
+struct etna_shader_state {
+ struct etna_shader_variant *vs, *fs;
+};
+
enum etna_immediate_contents {
ETNA_IMMEDIATE_UNUSED = 0,
ETNA_IMMEDIATE_CONSTANT,
@@ -155,10 +159,7 @@ struct etna_context {
struct pipe_constant_buffer constant_buffer[PIPE_SHADER_TYPES];
struct etna_vertexbuf_state vertex_buffer;
struct etna_index_buffer index_buffer;
-
- /* pointers to the bound state. these are mainly kept around for the blitter */
- struct etna_shader_variant *vs;
- struct etna_shader_variant *fs;
+ struct etna_shader_state shader;
/* saved parameter-like state. these are mainly kept around for the blitter */
struct pipe_framebuffer_state framebuffer_s;