summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2018-02-19 14:04:54 +0100
committerAlejandro Piñeiro <[email protected]>2018-06-21 14:25:05 +0200
commitae0208e5b4ed75a8abd7c338db18952067f4d56e (patch)
tree7a95698d8ddf8e4614adf4359d43ba70d2bf7a19 /src/gallium/drivers
parent57b618493102c63e840475a42c08a8cde7481ee9 (diff)
i965: Setup glsl uniforms by index rather than name matching
Previously when setting up a uniform it would try to walk the uniform storage slots and find one that matches the name of the given variable. However, each variable already has a location which is an index into the UniformStorage array so we can just directly jump to the right slot. Some of the variables take up more than one slot so we still need to calculate how many it uses. The main reason to do this is to support ARB_gl_spirv because in that case the uniforms don’t have names so the previous approach won’t work. Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
0 files changed, 0 insertions, 0 deletions