mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa: move shader_info to the start of gl_program
This will allow use to use ralloc_parent() on the info field and fix
a regression in nir_sweep() caused by e1af20f18a.
This is intended to be a temporary requirement that will be removed
when we finish separating shader_info from nir_shader.
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
cc6aa1d161
commit
f304aca542
1 changed files with 3 additions and 2 deletions
|
|
@ -1910,6 +1910,9 @@ typedef enum
|
|||
*/
|
||||
struct gl_program
|
||||
{
|
||||
/** FIXME: This must be first until we split shader_info from nir_shader */
|
||||
struct shader_info info;
|
||||
|
||||
mtx_t Mutex;
|
||||
GLuint Id;
|
||||
GLint RefCount;
|
||||
|
|
@ -1922,8 +1925,6 @@ struct gl_program
|
|||
|
||||
struct nir_shader *nir;
|
||||
|
||||
struct shader_info info;
|
||||
|
||||
GLbitfield64 SecondaryOutputsWritten; /**< Subset of OutputsWritten outputs written with non-zero index. */
|
||||
GLbitfield TexturesUsed[MAX_COMBINED_TEXTURE_IMAGE_UNITS]; /**< TEXTURE_x_BIT bitmask */
|
||||
GLbitfield SamplersUsed; /**< Bitfield of which samplers are used */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue