summaryrefslogtreecommitdiffstats
path: root/src/glsl/strtod.c
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-11-05 11:17:32 -0700
committerPaul Berry <[email protected]>2011-11-09 11:12:47 -0800
commit871ddb919b424293894a23a8f83200fed572d6a9 (patch)
treecef7a86fd7e1387f89223ac6bde1dafa6c341557 /src/glsl/strtod.c
parent6f5c73797087c6e7842665f84e41caedea59bb65 (diff)
glsl: Assign transform feedback varying slots in linker.
This patch modifies the GLSL linker to assign additional slots for varying variables used by transform feedback, and record the varying slots used by transform feedback for use by the driver back-end. This required modifying assign_varying_locations() so that it assigns a varying location if either (a) the varying is used by the next stage of the GL pipeline, or (b) the varying is required by transform feedback. In order to avoid duplicating the code to assign a single varying location, I moved it into its own function, assign_varying_location(). In addition, to support transform feedback in the case where there is no fragment shader, it is now possible to call assign_varying_locations() with a consumer of NULL. Reviewed-by: Marek Olšák <[email protected]> Tested-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/glsl/strtod.c')
0 files changed, 0 insertions, 0 deletions