etnaviv: remove primconvert
This is no longer used. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12516>
This commit is contained in:
parent
a3d6aa43a6
commit
84fa286602
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue