[Mesa-dev] [PATCH 12/18] glsl: Set the uniform_block index for the linked shader variables.

Eric Anholt eric at anholt.net
Fri Jul 20 09:53:42 PDT 2012


Ian Romanick <idr at freedesktop.org> writes:

> On 07/02/2012 05:38 PM, Eric Anholt wrote:
>> At this point in the linking, we've totally lost track of the struct
>> gl_uniform_buffer that this pointed to in the original unlinked
>> shader, so we do a nasty n^2 walk to find it the new one based on the
>> variable name.
>>
>> Note that these point into the shader's list of gl_uniform_buffers,
>> not the linked program's.
>
> And this works when a shader is linked to multiple programs because it's 
> the copy of the original shader.  Right?

Yeah, it's the linked shader, not the original shader.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120720/516c2e31/attachment.pgp>


More information about the mesa-dev mailing list