mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 08:00:30 +01:00
freedreno: Handle PIPE_FORMAT_NONE buffers
Clover creates buffers with format=NONE.. which is not technically incorrect. Just treat this as r8_unorm so we know width0 is the size in bytes. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13160>
This commit is contained in:
parent
9e74f458a8
commit
ac783acd74
1 changed files with 4 additions and 0 deletions
|
|
@ -1224,6 +1224,10 @@ fd_resource_allocate_and_resolve(struct pipe_screen *pscreen,
|
|||
|
||||
prsc = &rsc->b.b;
|
||||
|
||||
/* Clover creates buffers with PIPE_FORMAT_NONE: */
|
||||
if ((prsc->target == PIPE_BUFFER) && (format == PIPE_FORMAT_NONE))
|
||||
format = prsc->format = PIPE_FORMAT_R8_UNORM;
|
||||
|
||||
DBG("%" PRSC_FMT, PRSC_ARGS(prsc));
|
||||
|
||||
if (tmpl->bind & PIPE_BIND_SHARED)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue