diff options
author | Paul Berry <[email protected]> | 2013-10-16 13:18:11 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-10-24 22:00:50 -0700 |
commit | 03ac2c7223f7645e30028bf59b4c9cf0f5734fc0 (patch) | |
tree | fb39649a24436fa6e6274958375090c767032e5c /src/mesa/drivers/dri/i965/intel_debug.c | |
parent | a05589ea0b7b760e0473af6c7ab5d796520f5948 (diff) |
i965/gs: Fix up gl_PointSize input swizzling for DUAL_INSTANCED gs.
Geometry shaders that run in "DUAL_INSTANCED" mode store their inputs
in vec4's. This means that when compiling gl_PointSize input
swizzling (a MOV instruction which uses a geometry shader input as
both source and destination), we need to do two things:
- Set force_writemask_all to ensure that the MOV happens regardless of
which channels are enabled.
- Set the source register region to <4;4,1> (instead of <0;4,1> to
satisfy register region restrictions.
v2: move the source register region fixup to the top of
vec4_generator::generate_vec4_instruction(), so that it applies to all
instructions rather than just MOV.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_debug.c')
0 files changed, 0 insertions, 0 deletions