Mesa (master): dri/nouveau: Validate the framebuffer state on read buffer changes.
Francisco Jerez
currojerez at kemper.freedesktop.org
Sun Oct 31 21:13:09 UTC 2010
Module: Mesa
Branch: master
Commit: 4a282629c28864b977a86cf5c314bf2fafdff3bf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4a282629c28864b977a86cf5c314bf2fafdff3bf
Author: Francisco Jerez <currojerez at riseup.net>
Date: Sun Oct 31 22:07:26 2010 +0100
dri/nouveau: Validate the framebuffer state on read buffer changes.
---
src/mesa/drivers/dri/nouveau/nouveau_state.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_state.c b/src/mesa/drivers/dri/nouveau/nouveau_state.c
index 7b7ddd2..1579d29 100644
--- a/src/mesa/drivers/dri/nouveau/nouveau_state.c
+++ b/src/mesa/drivers/dri/nouveau/nouveau_state.c
@@ -113,6 +113,12 @@ nouveau_depth_range(struct gl_context *ctx, GLclampd nearval, GLclampd farval)
}
static void
+nouveau_read_buffer(struct gl_context *ctx, GLenum buffer)
+{
+ nouveau_validate_framebuffer(ctx);
+}
+
+static void
nouveau_draw_buffers(struct gl_context *ctx, GLsizei n, const GLenum *buffers)
{
nouveau_validate_framebuffer(ctx);
@@ -512,6 +518,7 @@ nouveau_state_init(struct gl_context *ctx)
ctx->Driver.DepthFunc = nouveau_depth_func;
ctx->Driver.DepthMask = nouveau_depth_mask;
ctx->Driver.DepthRange = nouveau_depth_range;
+ ctx->Driver.ReadBuffer = nouveau_read_buffer;
ctx->Driver.DrawBuffers = nouveau_draw_buffers;
ctx->Driver.Enable = nouveau_enable;
ctx->Driver.Fogfv = nouveau_fog;
More information about the mesa-commit
mailing list