mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
i965: Don't request untyped atomic writeback message if the destination is null.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0519a6259b
commit
8865fe309d
2 changed files with 3 additions and 2 deletions
|
|
@ -2018,7 +2018,7 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
|
|||
assert(src[1].file == BRW_IMMEDIATE_VALUE &&
|
||||
src[2].file == BRW_IMMEDIATE_VALUE);
|
||||
brw_untyped_atomic(p, dst, src[0], src[2], src[1].dw1.ud,
|
||||
inst->mlen, true);
|
||||
inst->mlen, !inst->dst.is_null());
|
||||
brw_mark_surface_used(prog_data, src[2].dw1.ud);
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -1472,7 +1472,8 @@ vec4_generator::generate_code(const cfg_t *cfg)
|
|||
assert(src[0].file == BRW_IMMEDIATE_VALUE &&
|
||||
src[1].file == BRW_IMMEDIATE_VALUE);
|
||||
brw_untyped_atomic(p, dst, brw_message_reg(inst->base_mrf),
|
||||
src[1], src[0].dw1.ud, inst->mlen, true);
|
||||
src[1], src[0].dw1.ud, inst->mlen,
|
||||
!inst->dst.is_null());
|
||||
brw_mark_surface_used(&prog_data->base, src[1].dw1.ud);
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue