summaryrefslogtreecommitdiffstats
path: root/src/broadcom/compiler/v3d40_tex.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-02-26 18:36:05 -0800
committerEric Anholt <[email protected]>2019-03-05 12:57:39 -0800
commit4739181a160cd941f7af78074c4f4ac7c6a1fd76 (patch)
tree7d48d8cc933f6446d01cebe94ed26262b8b0f749 /src/broadcom/compiler/v3d40_tex.c
parent1e98f02d887dada530595bc0c74292d4678c5e1a (diff)
v3d: Switch implicit uniforms over to being any qinst->uniform != ~0.
I'm not sure why I didn't do this before -- it's clearly much simpler to add dumping of the extra thing than to have it as another implicit source.
Diffstat (limited to 'src/broadcom/compiler/v3d40_tex.c')
-rw-r--r--src/broadcom/compiler/v3d40_tex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/broadcom/compiler/v3d40_tex.c b/src/broadcom/compiler/v3d40_tex.c
index 9f5c560791e..b6feffe53c9 100644
--- a/src/broadcom/compiler/v3d40_tex.c
+++ b/src/broadcom/compiler/v3d40_tex.c
@@ -48,8 +48,7 @@ vir_WRTMUC(struct v3d_compile *c, enum quniform_contents contents, uint32_t data
{
struct qinst *inst = vir_NOP(c);
inst->qpu.sig.wrtmuc = true;
- inst->has_implicit_uniform = true;
- inst->src[0] = vir_uniform(c, contents, data);
+ inst->uniform = vir_get_uniform_index(c, contents, data);
}
static const struct V3D41_TMU_CONFIG_PARAMETER_1 p1_unpacked_default = {