mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 00:20:11 +01:00
panfrost: Disable tiled formats on SFBD systems
Just because we don't have the format codes to render to them yet. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
990e24469c
commit
e6802af8c3
1 changed files with 3 additions and 1 deletions
|
|
@ -378,7 +378,9 @@ panfrost_resource_create_bo(struct panfrost_screen *screen, struct panfrost_reso
|
|||
bool is_2d = res->depth0 == 1 && res->array_size == 1;
|
||||
bool is_streaming = (res->usage != PIPE_USAGE_STREAM);
|
||||
|
||||
bool should_tile = is_streaming && is_texture && is_2d;
|
||||
/* TODO: Reenable tiling on SFBD systems when we support rendering to
|
||||
* tiled formats with SFBD */
|
||||
bool should_tile = is_streaming && is_texture && is_2d && !screen->require_sfbd;
|
||||
|
||||
/* Depth/stencil can't be tiled, only linear or AFBC */
|
||||
should_tile &= !(res->bind & PIPE_BIND_DEPTH_STENCIL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue