diff options
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_context.h')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_context.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_context.h b/src/gallium/drivers/vc4/vc4_context.h index efc37e849ee..99ec7e5d2e8 100644 --- a/src/gallium/drivers/vc4/vc4_context.h +++ b/src/gallium/drivers/vc4/vc4_context.h @@ -84,6 +84,13 @@ struct vc4_sampler_view { uint32_t texture_p0; uint32_t texture_p1; bool force_first_level; + /** + * Resource containing the actual texture that will be sampled. + * + * We may need to rebase the .base.texture resource to work around the + * lack of GL_TEXTURE_BASE_LEVEL, or to upload the texture as tiled. + */ + struct pipe_resource *texture; }; struct vc4_sampler_state { |