summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/a5xx/fd5_emit.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2018-05-11 08:19:22 -0400
committerRob Clark <[email protected]>2018-05-15 08:46:46 -0400
commitf897b67dc1299a4607478fc3792c66f78b6ca8b6 (patch)
treed1a6f05513779d8d655b608f1e61eb716beebbe5 /src/gallium/drivers/freedreno/a5xx/fd5_emit.h
parentd48a2404a227193b0e17b94ce10481f36d99430c (diff)
freedreno/a5xx: remove fd5_shader_stateobj
Extra level of indirection that serves no purpose. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx/fd5_emit.h')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_emit.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.h b/src/gallium/drivers/freedreno/a5xx/fd5_emit.h
index 2d8a0fd09c4..809ae475cee 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.h
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.h
@@ -75,8 +75,8 @@ static inline const struct ir3_shader_variant *
fd5_emit_get_vp(struct fd5_emit *emit)
{
if (!emit->vp) {
- struct fd5_shader_stateobj *so = emit->prog->vp;
- emit->vp = ir3_shader_variant(so->shader, emit->key, emit->debug);
+ struct ir3_shader *shader = emit->prog->vp;
+ emit->vp = ir3_shader_variant(shader, emit->key, emit->debug);
}
return emit->vp;
}
@@ -90,8 +90,8 @@ fd5_emit_get_fp(struct fd5_emit *emit)
static const struct ir3_shader_variant binning_fp = {};
emit->fp = &binning_fp;
} else {
- struct fd5_shader_stateobj *so = emit->prog->fp;
- emit->fp = ir3_shader_variant(so->shader, emit->key, emit->debug);
+ struct ir3_shader *shader = emit->prog->fp;
+ emit->fp = ir3_shader_variant(shader, emit->key, emit->debug);
}
}
return emit->fp;