mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
intel/fs: Uniformize the index in readInvocation
The index is any value provided by the shader and this can be called in non-uniform control flow so we can't just take component 0. Found by inspection. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
b67230de63
commit
ebaee9da4a
1 changed files with 1 additions and 1 deletions
|
|
@ -4305,7 +4305,7 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr
|
||||||
fs_reg tmp = bld.vgrf(value.type);
|
fs_reg tmp = bld.vgrf(value.type);
|
||||||
|
|
||||||
bld.exec_all().emit(SHADER_OPCODE_BROADCAST, tmp, value,
|
bld.exec_all().emit(SHADER_OPCODE_BROADCAST, tmp, value,
|
||||||
component(invocation, 0));
|
bld.emit_uniformize(invocation));
|
||||||
|
|
||||||
bld.MOV(retype(dest, BRW_REGISTER_TYPE_D),
|
bld.MOV(retype(dest, BRW_REGISTER_TYPE_D),
|
||||||
fs_reg(component(tmp, 0)));
|
fs_reg(component(tmp, 0)));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue