mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 23:50:11 +01:00
dri/nouveau: Call _mesa_update_state() after framebuffer invalidation.
Previously nouveau_state_emit() was being called directly, sometimes that doesn't work because it doesn't update the derived GL context.
This commit is contained in:
parent
e3c0b7ba41
commit
f102c5220c
2 changed files with 6 additions and 1 deletions
|
|
@ -365,5 +365,6 @@ nouveau_validate_framebuffer(struct gl_context *ctx)
|
|||
validate_framebuffer(dri_ctx, dri_read,
|
||||
&dri_ctx->dri2.read_stamp);
|
||||
|
||||
nouveau_state_emit(ctx);
|
||||
if (ctx->NewState & _NEW_BUFFERS)
|
||||
_mesa_update_state(ctx);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "main/state.h"
|
||||
#include "nouveau_driver.h"
|
||||
#include "nouveau_context.h"
|
||||
#include "nouveau_fbo.h"
|
||||
|
|
@ -184,6 +185,9 @@ nv10_clear(struct gl_context *ctx, GLbitfield buffers)
|
|||
nv17_zclear(ctx, &buffers);
|
||||
else
|
||||
nv10_zclear(ctx, &buffers);
|
||||
|
||||
/* Emit the zclear state if it's dirty */
|
||||
_mesa_update_state(ctx);
|
||||
}
|
||||
|
||||
nouveau_clear(ctx, buffers);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue