On 08/04/2013 01:51 AM, Vinson Lee wrote:
Fixes "Uninitialized pointer read" defect reported by Coverity.
Signed-off-by: Vinson Lee <v...@freedesktop.org>
---
src/gallium/drivers/nvc0/nvc0_context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/nvc0/nvc0_context.c
b/src/gallium/drivers/nvc0/nvc0_context.c
index cd86040..8cd5fc5 100644
--- a/src/gallium/drivers/nvc0/nvc0_context.c
+++ b/src/gallium/drivers/nvc0/nvc0_context.c
@@ -394,6 +394,7 @@ nvc0_context_get_sample_position(struct pipe_context *pipe,
case 8: ptr = ms8; break;
default:
assert(0);
+ ptr = ms1;
break;
}
xy[0] = ptr[sample_index][0] * 0.0625f;
Reviewed-by: Brian Paul <bri...@vmware.com>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev