aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/v3d/v3d_resource.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-11-28 17:22:45 -0800
committerEric Anholt <[email protected]>2018-12-14 17:48:01 -0800
commit6ad9e8690d144f110150d3367254504c1b322682 (patch)
tree7e8f987b4f74e27da90c1f2c5a2df71e117d773b /src/gallium/drivers/v3d/v3d_resource.h
parent976ea90bdca2b1fc9e7a577ddc302e810c622183 (diff)
v3d: Add support for texturing from linear.
Just like vc4, we have to support linear shared BOs for X11 on arbitrary displays. When we're faced with a request to texture from one of those, make a shadow image that we copy using the TFU at the start of the draw call.
Diffstat (limited to 'src/gallium/drivers/v3d/v3d_resource.h')
-rw-r--r--src/gallium/drivers/v3d/v3d_resource.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/v3d/v3d_resource.h b/src/gallium/drivers/v3d/v3d_resource.h
index 80b1d6eb9ad..2aa28627338 100644
--- a/src/gallium/drivers/v3d/v3d_resource.h
+++ b/src/gallium/drivers/v3d/v3d_resource.h
@@ -176,6 +176,8 @@ void v3d_resource_screen_init(struct pipe_screen *pscreen);
void v3d_resource_context_init(struct pipe_context *pctx);
struct pipe_resource *v3d_resource_create(struct pipe_screen *pscreen,
const struct pipe_resource *tmpl);
+void v3d_update_shadow_texture(struct pipe_context *pctx,
+ struct pipe_sampler_view *view);
uint32_t v3d_layer_offset(struct pipe_resource *prsc, uint32_t level,
uint32_t layer);