mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
i965/vec4: pass the correct src_sz to emit_send at emit_untyped_atomic
If the src is invalid, so src size is zero, the src_sz passed to emit
send should be zero too, instead of a default 1 if we are in a simd4x2
case. This can happens if using emit_untyped_atomic for an atomic
dec/inc.
v2: use the proper src_sz when calling emit_send, instead of just
avoid loading src at emit_send if BAD_FILE (Francisco Jerez)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
ea9fa5ff05
commit
0c5c2e2c93
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ namespace brw {
|
|||
emit_insert(bld, addr, dims, has_simd4x2),
|
||||
has_simd4x2 ? 1 : dims,
|
||||
emit_insert(bld, src_reg(srcs), size, has_simd4x2),
|
||||
has_simd4x2 ? 1 : size,
|
||||
has_simd4x2 && size ? 1 : size,
|
||||
surface, op, rsize, pred);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue