summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_context.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-01-10 15:49:47 -0800
committerEric Anholt <[email protected]>2018-01-12 21:57:09 -0800
commitaf9753e246c2a4371a289b44064483ece8d1ad5d (patch)
tree7ed22373245fc9d683c7220b1b809865a6c81480 /src/gallium/drivers/vc5/vc5_context.h
parent5aaea3c4a0bb34dabe365cd968e0bbb3c474defd (diff)
broadcom/vc5: Update state setup for V3D 4.1.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_context.h')
-rw-r--r--src/gallium/drivers/vc5/vc5_context.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_context.h b/src/gallium/drivers/vc5/vc5_context.h
index 508c894071a..e4c2eb551bd 100644
--- a/src/gallium/drivers/vc5/vc5_context.h
+++ b/src/gallium/drivers/vc5/vc5_context.h
@@ -93,6 +93,8 @@ struct vc5_sampler_view {
uint8_t swizzle[4];
uint8_t texture_shader_state[32];
+ /* V3D 4.x: Texture state struct. */
+ struct vc5_bo *bo;
};
struct vc5_sampler_state {
@@ -100,7 +102,10 @@ struct vc5_sampler_state {
uint32_t p0;
uint32_t p1;
+ /* V3D 3.x: Packed texture state. */
uint8_t texture_shader_state[32];
+ /* V3D 4.x: Sampler state struct. */
+ struct vc5_bo *bo;
};
struct vc5_texture_stateobj {
@@ -446,7 +451,6 @@ vc5_sampler_state(struct pipe_sampler_state *psampler)
struct pipe_context *vc5_context_create(struct pipe_screen *pscreen,
void *priv, unsigned flags);
-void vc5_state_init(struct pipe_context *pctx);
void vc5_program_init(struct pipe_context *pctx);
void vc5_program_fini(struct pipe_context *pctx);
void vc5_query_init(struct pipe_context *pctx);