i965/vec4: Use byte offsets for UBO pulls on Sandy Bridge
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 Nov 2015 00:01:44 +0000 (16:01 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 8 Dec 2015 05:51:23 +0000 (21:51 -0800)
commite3e70698c3cfa7e9acccd6eddfb37516c45d5ac2
treeb4aef58b682600a51b4ee0339ef1b7723bb79efb
parent6ef8149bcd1f11c7e4b6e9191bfd9ba6d31170e1
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>
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp