diff options
author | Marek Olšák <[email protected]> | 2019-04-10 21:24:18 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-04-12 11:34:39 -0400 |
commit | 971bc10177ae1be56b8b7fd7c8af3ea5841f349d (patch) | |
tree | 26fd634102f0998a88ac033be27fbfb6fc1b4714 /src/gallium/drivers/radeonsi | |
parent | 467ff6ebfe984c5a829acee2b89f996b241f3a0d (diff) |
radeonsi: set AC_FUNC_ATTR_READNONE for image opcodes where it was missing
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c index 727def56f65..ed67976b421 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c @@ -1042,6 +1042,7 @@ static void resq_emit( args.opcode = ac_image_get_resinfo; args.dim = ac_texture_dim_from_tgsi_target(ctx->screen, target); args.dmask = 0xf; + args.attributes = AC_FUNC_ATTR_READNONE; if (inst->Instruction.Opcode == TGSI_OPCODE_TXQ) { tex_fetch_ptrs(bld_base, emit_data, &args.resource, NULL, NULL); @@ -1272,6 +1273,7 @@ si_lower_gather4_integer(struct si_shader_context *ctx, resinfo.sampler = args->sampler; resinfo.lod = ctx->ac.i32_0; resinfo.dmask = 0xf; + resinfo.attributes = AC_FUNC_ATTR_READNONE; LLVMValueRef texsize = fix_resinfo(ctx, target, @@ -1776,6 +1778,8 @@ static void si_llvm_emit_fbfetch(const struct lp_build_tgsi_action *action, args.opcode = ac_image_load; args.resource = image; args.dmask = 0xf; + args.attributes = AC_FUNC_ATTR_READNONE; + if (ctx->shader->key.mono.u.ps.fbfetch_msaa) args.dim = ctx->shader->key.mono.u.ps.fbfetch_layered ? ac_image_2darraymsaa : ac_image_2dmsaa; |