diff options
author | Neil Roberts <[email protected]> | 2018-02-19 14:04:54 +0100 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2018-06-21 14:25:05 +0200 |
commit | ae0208e5b4ed75a8abd7c338db18952067f4d56e (patch) | |
tree | 7a95698d8ddf8e4614adf4359d43ba70d2bf7a19 /src/git_sha1.h.in | |
parent | 57b618493102c63e840475a42c08a8cde7481ee9 (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/git_sha1.h.in')
0 files changed, 0 insertions, 0 deletions