[Mesa-dev] [PATCH] st/dri: Fix segmentation fault in sw drivers
nobled
nobled at dreamwidth.org
Mon Aug 9 19:18:40 PDT 2010
---
src/gallium/state_trackers/dri/sw/drisw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/dri/sw/drisw.c
b/src/gallium/state_trackers/dri/sw/drisw.c
index 8f11979..2c0fb10 100644
--- a/src/gallium/state_trackers/dri/sw/drisw.c
+++ b/src/gallium/state_trackers/dri/sw/drisw.c
@@ -202,7 +202,7 @@
struct pipe_resource templ;
unsigned width, height;
boolean resized;
- int i;
+ unsigned i;
width = drawable->dPriv->w;
height = drawable->dPriv->h;
@@ -223,7 +223,7 @@
templ.depth0 = 1;
templ.last_level = 0;
- for (i = 0; i < ST_ATTACHMENT_COUNT; i++) {
+ for (i = 0; i < count; i++) {
enum pipe_format format;
unsigned bind;
--
1.5.4.3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-st-dri-Fix-segmentation-fault-in-sw-drivers.patch
Type: text/x-patch
Size: 1070 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100809/14aeceb0/attachment.bin>
More information about the mesa-dev
mailing list