summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_resource.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-07-27 18:11:19 -0700
committerEric Anholt <[email protected]>2017-09-26 14:49:43 -0700
commit68c91a87d73cfcd947e09803ceb800b50bf9e399 (patch)
treed69de616cf379a03bd166c4167aa17e1d390a7e5 /src/gallium/drivers/vc4/vc4_resource.h
parent4b407a62c757c8344736caa200e706d2bd66fb2c (diff)
broadcom/vc4: Keep pipe_sampler_view->texture matching the original texture.
I was overwriting view->texture with the shadow resource when we need to do shadow copies (retiling or baselevel rebase), but that tripped up some critical new sanity checking in state_tracker (making sure that stObj->pt hasn't changed from view->texture through TexImage-related paths). To avoid that, move the shadow resource to the vc4_sampler_view struct. Fixes: f0ecd36ef8e1 ("st/mesa: add an entirely separate codepath for setting up buffer views")
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_resource.h')
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.h b/src/gallium/drivers/vc4/vc4_resource.h
index 32e73dddb34..d4c491e50b8 100644
--- a/src/gallium/drivers/vc4/vc4_resource.h
+++ b/src/gallium/drivers/vc4/vc4_resource.h
@@ -81,20 +81,6 @@ struct vc4_resource {
* buffer) may get marked.
*/
uint32_t initialized_buffers;
-
- /**
- * Resource containing the non-GL_TEXTURE_BASE_LEVEL-rebased texture
- * contents, or the 4-byte index buffer.
- *
- * If the parent is set for an texture, then this resource is actually
- * the texture contents just starting from the sampler_view's
- * first_level.
- *
- * If the parent is set for an index index buffer, then this resource
- * is actually a shadow containing a 2-byte index buffer starting from
- * the ib's offset.
- */
- struct pipe_resource *shadow_parent;
};
static inline struct vc4_resource *