freedreno/a6xx: Drop arbitrary import restrictions

As long as fdl is happy to layout the imported buffer type, we shouldn't
restrict it further.  The cl_gl_sharing extends import/export beyond
winsys buffers, and these restrictions were getting in the way.

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37696>
This commit is contained in:
Rob Clark
2025-10-03 14:57:27 -07:00
committed by Marge Bot
parent ffcb8d0b89
commit 383508cb9f
@@ -118,15 +118,7 @@ ok_ubwc_format(struct pipe_screen *pscreen, enum pipe_format pfmt, unsigned nr_s
static bool
can_do_ubwc(struct pipe_resource *prsc)
{
/* limit things to simple single level 2d for now: */
if ((prsc->depth0 != 1) || (prsc->array_size != 1) ||
(prsc->last_level != 0))
return false;
if (prsc->target != PIPE_TEXTURE_2D)
return false;
if (!ok_ubwc_format(prsc->screen, prsc->format, prsc->nr_samples))
return false;
return true;
return ok_ubwc_format(prsc->screen, prsc->format, prsc->nr_samples);
}
static bool