diff options
author | Rob Clark <[email protected]> | 2017-11-09 10:57:55 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-11-12 12:28:59 -0500 |
commit | 9edfc369c04d131b664f6c94a0e249a81a5c0da5 (patch) | |
tree | f691703325622560e3ed26a5847fdaf7cde6686f /src/gallium/drivers/freedreno/ir3/ir3_legalize.c | |
parent | eaae81058cdd0ed103c55be7a1722546d63c86da (diff) |
freedreno/ir3: image support
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_legalize.c')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_legalize.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_legalize.c b/src/gallium/drivers/freedreno/ir3/ir3_legalize.c index a206837ef84..3f12b68ada1 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_legalize.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_legalize.c @@ -187,6 +187,9 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block) */ ctx->has_samp = true; regmask_set(&needs_sy, n->regs[0]); + } else if (n->opc == OPC_RESINFO) { + regmask_set(&needs_ss, n->regs[0]); + ir3_NOP(block)->flags |= IR3_INSTR_SS; } else if (is_load(n)) { /* seems like ldlv needs (ss) bit instead?? which is odd but * makes a bunch of flat-varying tests start working on a4xx. |