diff options
author | Adam Jackson <ajax@redhat.com> | 2014-04-15 13:36:13 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2014-04-15 13:36:13 -0400 |
commit | b2a76586a8fa383030b0bdc70335ce8242757c4f (patch) | |
tree | b578d13f791dfc2ae2c8b0820d4ae12beeb51e55 /0001-mesa-Don-t-optimize-out-glClear-if-drawbuffer-size-i.patch | |
parent | 637fa0fa97ca31e34154a5f17f3be9892d78fe3d (diff) | |
parent | 567538d82363d35f766c04ebdba9e82a78468424 (diff) | |
download | mesa-b2a76586a8fa383030b0bdc70335ce8242757c4f.tar.gz mesa-b2a76586a8fa383030b0bdc70335ce8242757c4f.tar.xz mesa-b2a76586a8fa383030b0bdc70335ce8242757c4f.zip |
Merge remote-tracking branch 'origin/master' into f20
Diffstat (limited to '0001-mesa-Don-t-optimize-out-glClear-if-drawbuffer-size-i.patch')
-rw-r--r-- | 0001-mesa-Don-t-optimize-out-glClear-if-drawbuffer-size-i.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/0001-mesa-Don-t-optimize-out-glClear-if-drawbuffer-size-i.patch b/0001-mesa-Don-t-optimize-out-glClear-if-drawbuffer-size-i.patch new file mode 100644 index 0000000..7084ab7 --- /dev/null +++ b/0001-mesa-Don-t-optimize-out-glClear-if-drawbuffer-size-i.patch @@ -0,0 +1,34 @@ +From 1fb986f3a722e8476af90b5ab512e495f0caf10f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= <krh@bitplanet.net> +Date: Thu, 6 Mar 2014 16:58:32 -0800 +Subject: [PATCH] mesa: Don't optimize out glClear() if drawbuffer size is 0x0 + +The driver acquires buffer lazily and may not yet have buffers for +a newly current drawable. In that case the drawable size is 0x0 but +we still need to call into the driver and make it fetch buffers and get +the drawable size. + +https://bugs.freedesktop.org/show_bug.cgi?id=75797 +--- + src/mesa/main/clear.c | 5 ----- + 1 file changed, 5 deletions(-) + +diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c +index 077c5fc..c3f7474 100644 +--- a/src/mesa/main/clear.c ++++ b/src/mesa/main/clear.c +@@ -155,11 +155,6 @@ _mesa_Clear( GLbitfield mask ) + return; + } + +- if (ctx->DrawBuffer->Width == 0 || ctx->DrawBuffer->Height == 0 || +- ctx->DrawBuffer->_Xmin >= ctx->DrawBuffer->_Xmax || +- ctx->DrawBuffer->_Ymin >= ctx->DrawBuffer->_Ymax) +- return; +- + if (ctx->RasterDiscard) + return; + +-- +1.8.5.3 + |