diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.c b/src/gallium/drivers/etnaviv/etnaviv_context.c index b56ec6f2c09..f2ab4ecfe14 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_context.c +++ b/src/gallium/drivers/etnaviv/etnaviv_context.c @@ -142,9 +142,6 @@ etna_context_destroy(struct pipe_context *pctx) util_copy_framebuffer_state(&ctx->framebuffer_s, NULL); - if (ctx->primconvert) - util_primconvert_destroy(ctx->primconvert); - if (ctx->blitter) util_blitter_destroy(ctx->blitter); @@ -642,27 +639,6 @@ etna_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) if (!ctx->blitter) goto fail; - /* Generate the bitmask of supported draw primitives. */ - ctx->prim_hwsupport = 1 << PIPE_PRIM_POINTS | - 1 << PIPE_PRIM_LINES | - 1 << PIPE_PRIM_LINE_STRIP | - 1 << PIPE_PRIM_TRIANGLES | - 1 << PIPE_PRIM_TRIANGLE_FAN; - - /* TODO: The bug relates only to indexed draws, but here we signal - * that there is no support for triangle strips at all. This should - * be refined. - */ - if (VIV_FEATURE(ctx->screen, chipMinorFeatures2, BUG_FIXES8)) - ctx->prim_hwsupport |= 1 << PIPE_PRIM_TRIANGLE_STRIP; - - if (VIV_FEATURE(ctx->screen, chipMinorFeatures2, LINE_LOOP)) - ctx->prim_hwsupport |= 1 << PIPE_PRIM_LINE_LOOP; - - ctx->primconvert = util_primconvert_create(pctx, ctx->prim_hwsupport); - if (!ctx->primconvert) - goto fail; - slab_create_child(&ctx->transfer_pool, &screen->transfer_pool); list_inithead(&ctx->active_acc_queries); diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.h b/src/gallium/drivers/etnaviv/etnaviv_context.h index 21e4d3f33ca..1da6a2127f3 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_context.h +++ b/src/gallium/drivers/etnaviv/etnaviv_context.h @@ -32,7 +32,6 @@ #include "etnaviv_resource.h" #include "etnaviv_tiling.h" -#include "indices/u_primconvert.h" #include "pipe/p_context.h" #include "pipe/p_defines.h" #include "pipe/p_format.h" @@ -143,9 +142,6 @@ struct etna_context { ETNA_DIRTY_SCISSOR_CLIP = (1 << 20), } dirty; - uint32_t prim_hwsupport; - struct primconvert_context *primconvert; - struct slab_child_pool transfer_pool; struct blitter_context *blitter;