summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2017-06-09 18:23:16 +0200
committerLucas Stach <[email protected]>2017-07-19 16:26:49 +0200
commitc4818808991134cc7d7741c8f29dc50f6d2102a0 (patch)
tree79added36f8a71a9687360cb024988e5822e4fe8 /src/gallium/drivers/vc4
parenta9fad437f7ad1c1a8c0a694c2d8b4b6ad4d32098 (diff)
renderonly/etnaviv: stop importing resource from renderonly
The current way of importing the resource from renderonly after allocation is opaque and is taking away control from the driver, which it needs in order to implement more advanced scenarios than the simple linear scanout with matching stride alignments. Signed-off-by: Lucas Stach <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Acked-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r--src/gallium/drivers/vc4/vc4_resource.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/vc4/vc4_resource.c b/src/gallium/drivers/vc4/vc4_resource.c
index 94301bd4114..2018dc36d93 100644
--- a/src/gallium/drivers/vc4/vc4_resource.c
+++ b/src/gallium/drivers/vc4/vc4_resource.c
@@ -671,7 +671,7 @@ vc4_resource_create_with_modifiers(struct pipe_screen *pscreen,
if (screen->ro && tmpl->bind & PIPE_BIND_SCANOUT) {
rsc->scanout =
- renderonly_scanout_for_resource(prsc, screen->ro);
+ renderonly_scanout_for_resource(prsc, screen->ro, NULL);
if (!rsc->scanout)
goto fail;
}
@@ -769,7 +769,8 @@ vc4_resource_from_handle(struct pipe_screen *pscreen,
*/
rsc->scanout =
renderonly_create_gpu_import_for_resource(prsc,
- screen->ro);
+ screen->ro,
+ NULL);
if (!rsc->scanout)
goto fail;
}