projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff59b3d
)
svga: fix clearing for null color buffers
author
Brian Paul
<brianp@vmware.com>
Fri, 17 Jan 2014 02:01:57 +0000
(18:01 -0800)
committer
Brian Paul
<brianp@vmware.com>
Tue, 21 Jan 2014 18:53:51 +0000
(10:53 -0800)
Fixes piglit "fbo-drawbuffers-none glClear" test.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_pipe_clear.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_pipe_clear.c
b/src/gallium/drivers/svga/svga_pipe_clear.c
index 5deebb2bc9f0c69f17e6cddeadd71f91865b68d7..21869e9d6d0aee0b7c1cbfbcfa3ce190f050fc5c 100644
(file)
--- a/
src/gallium/drivers/svga/svga_pipe_clear.c
+++ b/
src/gallium/drivers/svga/svga_pipe_clear.c
@@
-59,12
+59,12
@@
try_clear(struct svga_context *svga,
}
}
- if (
(buffers & PIPE_CLEAR_COLOR) && fb->cbufs[0]
) {
+ if (
buffers & PIPE_CLEAR_COLOR
) {
flags |= SVGA3D_CLEAR_COLOR;
util_pack_color(color->f, PIPE_FORMAT_B8G8R8A8_UNORM, &uc);
- rect.w = fb->
cbufs[0]->
width;
- rect.h = fb->
cbufs[0]->
height;
+ rect.w = fb->width;
+ rect.h = fb->height;
}
if ((buffers & PIPE_CLEAR_DEPTHSTENCIL) && fb->zsbuf) {