summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-06-24 14:48:57 -0600
committerBrian Paul <[email protected]>2013-06-25 17:54:24 -0600
commita4e4a413e5b24d36ac135a2eb42d5e57b8b4ccca (patch)
treed3b899c0741d53efca90a859116e70e3bfae44a9 /src/gallium/drivers
parent82d6a525309c0855e16ccdccaa8d9740682947a3 (diff)
svga: add array index assertion in svga_validate_sampler_view()
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_sampler_view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_sampler_view.c b/src/gallium/drivers/svga/svga_sampler_view.c
index 1950784a15a..2c846b29a44 100644
--- a/src/gallium/drivers/svga/svga_sampler_view.c
+++ b/src/gallium/drivers/svga/svga_sampler_view.c
@@ -191,6 +191,7 @@ svga_validate_sampler_view(struct svga_context *svga, struct svga_sampler_view *
for (i = v->min_lod; i <= v->max_lod; i++) {
for (k = 0; k < numFaces; k++) {
+ assert(i < Elements(tex->view_age));
if (v->age < tex->view_age[i])
svga_texture_copy_handle(svga,
tex->handle, 0, 0, 0, i, k,