Mesa (master): intel: Update mesa state in blit operations that want post-scissor draw bounds.

Eric Anholt anholt at kemper.freedesktop.org
Fri Dec 19 21:06:10 UTC 2008


Module: Mesa
Branch: master
Commit: b9752a2bd615d136369af63ed3d45cc10adf21e7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b9752a2bd615d136369af63ed3d45cc10adf21e7

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Dec 17 21:18:20 2008 -0800

intel: Update mesa state in blit operations that want post-scissor draw bounds.

---

 src/mesa/drivers/dri/intel/intel_pixel_bitmap.c |    4 ++++
 src/mesa/drivers/dri/intel/intel_pixel_copy.c   |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
index e3ce149..fd2ea79 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_bitmap.c
@@ -32,6 +32,7 @@
 #include "main/mtypes.h"
 #include "main/macros.h"
 #include "main/bufferobj.h"
+#include "main/state.h"
 #include "swrast/swrast.h"
 
 #include "intel_screen.h"
@@ -172,6 +173,9 @@ do_blit_bitmap( GLcontext *ctx,
    drm_clip_rect_t *cliprects;
    int x_off, y_off;
 
+   /* Update draw buffer bounds */
+   _mesa_update_state(ctx);
+
    if (!dst)
        return GL_FALSE;
 
diff --git a/src/mesa/drivers/dri/intel/intel_pixel_copy.c b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
index 1505af2..447c649 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel_copy.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel_copy.c
@@ -266,6 +266,9 @@ do_blit_copypixels(GLcontext * ctx,
    drm_clip_rect_t *cliprects;
    int x_off, y_off;
 
+   /* Update draw buffer bounds */
+   _mesa_update_state(ctx);
+
    /* Copypixels can be more than a straight copy.  Ensure all the
     * extra operations are disabled:
     */




More information about the mesa-commit mailing list