summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_surface.c
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2017-05-10 18:01:06 +0200
committerChristian Gmeiner <[email protected]>2017-05-16 21:07:46 +0200
commitf8a39914586de004759ea9cbda1335bdf0790cdc (patch)
tree35a7ad44c7340a62c9ec13ec7e5bd662a82bf848 /src/gallium/drivers/etnaviv/etnaviv_surface.c
parent20ce6f136188c24a019153e78c87872fb0a03060 (diff)
etnaviv: apply feature overrides in one central location
This way we can just test the feature bits and don't need to spread the debug overrides to all locations touching a feature. Signed-off-by: Lucas Stach <[email protected]> Reviewed-By: Wladimir J. van der Laan <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_surface.c')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_surface.c b/src/gallium/drivers/etnaviv/etnaviv_surface.c
index 1db9b40a510..4b95f6575a4 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_surface.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_surface.c
@@ -66,7 +66,7 @@ etna_create_surface(struct pipe_context *pctx, struct pipe_resource *prsc,
if (VIV_FEATURE(ctx->screen, chipFeatures, FAST_CLEAR) &&
VIV_FEATURE(ctx->screen, chipMinorFeatures0, MC20) &&
- !DBG_ENABLED(ETNA_DBG_NO_TS) && !rsc->ts_bo &&
+ !rsc->ts_bo &&
(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);