diff options
author | Lucas Stach <[email protected]> | 2017-06-09 18:23:16 +0200 |
---|---|---|
committer | Lucas Stach <[email protected]> | 2017-07-19 16:26:49 +0200 |
commit | c4818808991134cc7d7741c8f29dc50f6d2102a0 (patch) | |
tree | 79added36f8a71a9687360cb024988e5822e4fe8 /src/gallium/drivers/etnaviv/etnaviv_resource.h | |
parent | a9fad437f7ad1c1a8c0a694c2d8b4b6ad4d32098 (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/etnaviv/etnaviv_resource.h')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_resource.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.h b/src/gallium/drivers/etnaviv/etnaviv_resource.h index 3507e5ccecb..5f563c06adc 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.h +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.h @@ -75,6 +75,11 @@ struct etna_resource { /* When we are rendering to a texture, we need a differently tiled resource */ struct pipe_resource *texture; + /* + * If imported resources have an render/sampler incompatible tiling, we keep + * them as an external resource, which is blitted as needed. + */ + struct pipe_resource *external; enum etna_resource_status status; |