}
sv = CALLOC_STRUCT(svga_sampler_view);
+ if (!sv)
+ return NULL;
+
pipe_reference_init(&sv->reference, 1);
/* Note: we're not refcounting the texture resource here to avoid
&sv->key);
if (!sv->handle) {
- assert(0);
sv->key.cachable = 0;
sv->handle = tex->handle;
debug_reference(&sv->reference,
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,