[Mesa-dev] [PATCH 1/3] st/mesa/r200/i915/i965: use rzalloc() to create gl_program

Eric Anholt eric at anholt.net
Wed Nov 2 23:27:13 UTC 2016


Timothy Arceri <timothy.arceri at collabora.com> writes:

> This will allow us to move some fields from gl_linked_shader to
> gl_program, which will allow us to do some clean-ups like storing
> gl_program directly in the CurrentProgram array in gl_pipeline_object
> enabling some small validation optimisations at draw time.
>
> Also it is error prone to depend on the gl_linked_shader for
> programs in current use because a failed linking attempt will free
> infomation about the current program. In i965 we could be trying
> to recompile a shader variant but may have lost some required fields.

It's a bit funny to be talking about all this, when the purpose of this
patch in this series is to make it so that the shader_info can be
ralloced.  Maybe mention that?

The series as a whole should get things working again, though, so I'd
like to see it land.  Reviewed-by: Eric Anholt <eric at anholt.net>

(I was actually in the middle of testing a workaround based on calling
nir_gather_info, because I needed vc4 fixed).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161102/bb27aede/attachment-0001.sig>


More information about the mesa-dev mailing list