mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 02:40:11 +01:00
etnaviv: enable TS also on sampler resources
Fixes a performance issue with imported winsys buffers as those are marked with binding sampler view. This might require a TS flush on single pipe chips that directly sample from the rendered buffer, but otherwise seems to work fine. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
This commit is contained in:
parent
52f6c8cc31
commit
797890bbbd
1 changed files with 0 additions and 3 deletions
|
|
@ -64,12 +64,9 @@ etna_create_surface(struct pipe_context *pctx, struct pipe_resource *prsc,
|
|||
* indicate the tile status module bypasses the memory
|
||||
* offset and MMU. */
|
||||
|
||||
/* XXX for now, don't do TS for render textures as this path
|
||||
* is not stable. */
|
||||
if (VIV_FEATURE(ctx->screen, chipFeatures, FAST_CLEAR) &&
|
||||
VIV_FEATURE(ctx->screen, chipMinorFeatures0, MC20) &&
|
||||
!DBG_ENABLED(ETNA_DBG_NO_TS) && !rsc->ts_bo &&
|
||||
!(rsc->base.bind & (PIPE_BIND_SAMPLER_VIEW)) &&
|
||||
(rsc->levels[level].padded_width & ETNA_RS_WIDTH_MASK) == 0 &&
|
||||
(rsc->levels[level].padded_height & ETNA_RS_HEIGHT_MASK) == 0) {
|
||||
etna_screen_resource_alloc_ts(pctx->screen, rsc);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue