i965/vec4: Use byte offsets for UBO pulls on Sandy Bridge
Previously, the VS_OPCODE_PULL_CONSTANT_LOAD opcode operated on vec4-aligned byte offsets on Iron Lake and below and worked in terms of vec4 offsets on Sandy Bridge. On Ivy Bridge, we add a new *LOAD_GEN7 variant which works in terms of vec4s. We're about to change the GEN7 version to work in terms of bytes, so this is a nice unification. Cc: "11.0" <mesa-stable@lists.freedesktop.org> Reviewed-by:Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit e3e70698) [Emil Velikov: s/brw_imm_ud/src_reg/g ,s/offset.ud/offset.dw1.ud/ ] Signed-off-by:
Emil Velikov <emil.velikov@collabora.com>
Showing
- src/mesa/drivers/dri/i965/brw_vec4_generator.cpp 15 additions, 2 deletionssrc/mesa/drivers/dri/i965/brw_vec4_generator.cpp
- src/mesa/drivers/dri/i965/brw_vec4_nir.cpp 13 additions, 5 deletionssrc/mesa/drivers/dri/i965/brw_vec4_nir.cpp
- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp 3 additions, 3 deletionssrc/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
Loading
Please register or sign in to comment