mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 13:30:12 +01:00
intel/compiler: fix register allocation in opt_peephole_sel
This wasn't handling 64-bit cases properly. Found by inspection. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
6f737b9207
commit
e55cbf26ea
1 changed files with 1 additions and 2 deletions
|
|
@ -198,8 +198,7 @@ fs_visitor::opt_peephole_sel()
|
|||
*/
|
||||
fs_reg src0(then_mov[i]->src[0]);
|
||||
if (src0.file == IMM) {
|
||||
src0 = vgrf(glsl_type::float_type);
|
||||
src0.type = then_mov[i]->src[0].type;
|
||||
src0 = ibld.vgrf(then_mov[i]->src[0].type);
|
||||
ibld.MOV(src0, then_mov[i]->src[0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue