diff options
author | Jose Maria Casanova Crespo <[email protected]> | 2018-06-12 14:52:14 +0200 |
---|---|---|
committer | Jose Maria Casanova Crespo <[email protected]> | 2018-07-09 15:28:48 +0200 |
commit | 6706b421f042c9cc0d8c7d20e974791674acab2b (patch) | |
tree | b1c804c7f1ab86b2441614e704ba48d6c7541be8 /src/intel/compiler | |
parent | e8f82b33fbb572dea1c5b645ea3520915061cddc (diff) |
intel/fs: use uint type for per_slot_offset at GS
This helps us to compact original instruction:
mul(8) g3<1>D g6<8,8,1>UD 0x00000006UD { align1 1Q };
So now we emit:
mul(8) g3<1>UD g6<8,8,1>UD 0x00000006UD { align1 1Q compacted };
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r-- | src/intel/compiler/brw_fs_visitor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_fs_visitor.cpp b/src/intel/compiler/brw_fs_visitor.cpp index 0ca230e888c..cd2abbb5960 100644 --- a/src/intel/compiler/brw_fs_visitor.cpp +++ b/src/intel/compiler/brw_fs_visitor.cpp @@ -602,7 +602,7 @@ fs_visitor::emit_urb_writes(const fs_reg &gs_vertex_count) per_slot_offsets = brw_imm_ud(output_vertex_size_owords * gs_vertex_count.ud); } else { - per_slot_offsets = vgrf(glsl_type::int_type); + per_slot_offsets = vgrf(glsl_type::uint_type); bld.MUL(per_slot_offsets, gs_vertex_count, brw_imm_ud(output_vertex_size_owords)); } |