mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
svga: add array index assertion in svga_validate_sampler_view()
This commit is contained in:
parent
82d6a52530
commit
a4e4a413e5
1 changed files with 1 additions and 0 deletions
|
|
@ -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 (i = v->min_lod; i <= v->max_lod; i++) {
|
||||||
for (k = 0; k < numFaces; k++) {
|
for (k = 0; k < numFaces; k++) {
|
||||||
|
assert(i < Elements(tex->view_age));
|
||||||
if (v->age < tex->view_age[i])
|
if (v->age < tex->view_age[i])
|
||||||
svga_texture_copy_handle(svga,
|
svga_texture_copy_handle(svga,
|
||||||
tex->handle, 0, 0, 0, i, k,
|
tex->handle, 0, 0, 0, i, k,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue