mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
panfrost: Allow tiling on RECT textures
Except for the norm coords bit, they're identical to 2D. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5124>
This commit is contained in:
parent
c41cf03589
commit
b8bd356dff
1 changed files with 1 additions and 1 deletions
|
|
@ -410,7 +410,7 @@ panfrost_resource_create_bo(struct panfrost_device *dev, struct panfrost_resourc
|
|||
PIPE_BIND_DISPLAY_TARGET;
|
||||
|
||||
unsigned bpp = util_format_get_blocksizebits(res->format);
|
||||
bool is_2d = (res->target == PIPE_TEXTURE_2D);
|
||||
bool is_2d = (res->target == PIPE_TEXTURE_2D) || (res->target == PIPE_TEXTURE_RECT);
|
||||
bool is_sane_bpp = bpp == 8 || bpp == 16 || bpp == 24 || bpp == 32 || bpp == 64 || bpp == 128;
|
||||
bool should_tile = (res->usage != PIPE_USAGE_STREAM);
|
||||
bool must_tile = (res->bind & PIPE_BIND_DEPTH_STENCIL) && (dev->quirks & MIDGARD_SFBD);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue