mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 10:48:21 +02:00
i965: Always check vertex program.
Now i965 also uses the vertex program created by Mesa Core, but this vertex program is not only depend on mesa state _NEW_PROGRAM, so always check the current vertex program is updated or not. This fixes broken demo cubemap.
This commit is contained in:
parent
0060d41549
commit
df94fd1764
1 changed files with 4 additions and 1 deletions
|
|
@ -45,7 +45,6 @@ const struct brw_tracked_state *atoms[] =
|
|||
{
|
||||
&brw_check_fallback,
|
||||
|
||||
&brw_active_vertprog,
|
||||
&brw_wm_input_sizes,
|
||||
&brw_vs_prog,
|
||||
&brw_gs_prog,
|
||||
|
|
@ -212,6 +211,10 @@ void brw_validate_state( struct brw_context *brw )
|
|||
brw->state.dirty.brw |= BRW_NEW_FRAGMENT_PROGRAM;
|
||||
}
|
||||
|
||||
if (brw->vertex_program != brw->attribs.VertexProgram->_Current) {
|
||||
brw->vertex_program = brw->attribs.VertexProgram->_Current;
|
||||
brw->state.dirty.brw |= BRW_NEW_VERTEX_PROGRAM;
|
||||
}
|
||||
|
||||
if (state->mesa == 0 &&
|
||||
state->cache == 0 &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue