summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2015-08-14 15:15:11 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-10-10 11:40:19 -0700
commit2953c3d76178d7589947e6ea1dbd902b7b02b3d4 (patch)
tree1b3d2df2c32ea524178bedb86855beac78798c1d /src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
parent6842ad79125371e7e61baac8e6b8a77583f79065 (diff)
downloadexternal_mesa3d-2953c3d76178d7589947e6ea1dbd902b7b02b3d4.zip
external_mesa3d-2953c3d76178d7589947e6ea1dbd902b7b02b3d4.tar.gz
external_mesa3d-2953c3d76178d7589947e6ea1dbd902b7b02b3d4.tar.bz2
i965/vs: Map scalar VS input locations properly; avoid tons of MOVs.
Previously, we used nir_lower_io with the scalar type_size function, which mapped VERT_ATTRIB_* locations to...some numbers. Then, in fs_visitor::nir_setup_inputs(), we created temporaries indexed by those numbers, and emitted MOVs from the actual ATTR registers to those temporaries. Virtually all of these were copy propagated away, but it's still ugly. This patch reworks our input lowering to produce NIR lower_input intrinsics that properly index into the ATTR file, so we can access it directly. No changes in shader-db. v2: Fix unreachable() message (Ken), update commit message (Matt). Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp')
0 files changed, 0 insertions, 0 deletions