mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 11:10:10 +01:00
added _NEW_PROGRAM to check_state flags for pipeline stages (fixes vparray demo bug)
This commit is contained in:
parent
27ec7a5bf1
commit
6bbcae9473
6 changed files with 8 additions and 7 deletions
|
|
@ -241,7 +241,7 @@ static void free_fog_data( struct tnl_pipeline_stage *stage )
|
|||
const struct tnl_pipeline_stage _tnl_fog_coordinate_stage =
|
||||
{
|
||||
"build fog coordinates", /* name */
|
||||
_NEW_FOG, /* check_state */
|
||||
_NEW_FOG|_NEW_PROGRAM, /* check_state */
|
||||
_NEW_FOG, /* run_state */
|
||||
GL_FALSE, /* active? */
|
||||
0, /* inputs */
|
||||
|
|
|
|||
|
|
@ -352,7 +352,7 @@ static void dtr( struct tnl_pipeline_stage *stage )
|
|||
const struct tnl_pipeline_stage _tnl_lighting_stage =
|
||||
{
|
||||
"lighting", /* name */
|
||||
_NEW_LIGHT, /* recheck */
|
||||
_NEW_LIGHT|_NEW_PROGRAM, /* recheck */
|
||||
_NEW_LIGHT|_NEW_MODELVIEW, /* recalc -- modelview dependency
|
||||
* otherwise not captured by inputs
|
||||
* (which may be _TNL_BIT_POS) */
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ static void free_normal_data( struct tnl_pipeline_stage *stage )
|
|||
|
||||
#define _TNL_NEW_NORMAL_TRANSFORM (_NEW_MODELVIEW| \
|
||||
_NEW_TRANSFORM| \
|
||||
_NEW_PROGRAM| \
|
||||
_MESA_NEW_NEED_NORMALS| \
|
||||
_MESA_NEW_NEED_EYE_COORDS)
|
||||
|
||||
|
|
|
|||
|
|
@ -111,10 +111,10 @@ static void free_point_data( struct tnl_pipeline_stage *stage )
|
|||
const struct tnl_pipeline_stage _tnl_point_attenuation_stage =
|
||||
{
|
||||
"point size attenuation", /* name */
|
||||
_NEW_POINT, /* build_state_change */
|
||||
_NEW_POINT, /* run_state_change */
|
||||
_NEW_POINT|_NEW_PROGRAM, /* check_state */
|
||||
_NEW_POINT, /* run_state */
|
||||
GL_FALSE, /* active */
|
||||
_TNL_BIT_POS, /* inputs */
|
||||
_TNL_BIT_POS, /* inputs */
|
||||
_TNL_BIT_POS, /* outputs */
|
||||
0, /* changed_inputs (temporary value) */
|
||||
NULL, /* stage private data */
|
||||
|
|
|
|||
|
|
@ -678,7 +678,7 @@ static void free_texgen_data( struct tnl_pipeline_stage *stage )
|
|||
const struct tnl_pipeline_stage _tnl_texgen_stage =
|
||||
{
|
||||
"texgen", /* name */
|
||||
_NEW_TEXTURE, /* when to call check() */
|
||||
_NEW_TEXTURE|_NEW_PROGRAM, /* when to call check() */
|
||||
_NEW_TEXTURE, /* when to invalidate stored data */
|
||||
GL_FALSE, /* active? */
|
||||
0, /* inputs */
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ static void free_texmat_data( struct tnl_pipeline_stage *stage )
|
|||
const struct tnl_pipeline_stage _tnl_texture_transform_stage =
|
||||
{
|
||||
"texture transform", /* name */
|
||||
_NEW_TEXTURE|_NEW_TEXTURE_MATRIX, /* check_state */
|
||||
_NEW_TEXTURE|_NEW_TEXTURE_MATRIX|_NEW_PROGRAM, /* check_state */
|
||||
_NEW_TEXTURE|_NEW_TEXTURE_MATRIX, /* run_state */
|
||||
GL_FALSE, /* active? */
|
||||
0, /* inputs */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue