zink: remove primconvert

this is no longer used

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10973>
This commit is contained in:
Mike Blumenkrantz
2021-05-21 07:38:24 -04:00
committed by Marge Bot
parent c032c9e32d
commit a784713080
3 changed files with 0 additions and 18 deletions
-14
View File
@@ -37,7 +37,6 @@
#include "zink_state.h"
#include "zink_surface.h"
#include "indices/u_primconvert.h"
#include "util/u_blitter.h"
#include "util/u_debug.h"
#include "util/format_srgb.h"
@@ -114,7 +113,6 @@ zink_context_destroy(struct pipe_context *pctx)
hash_table_foreach(ctx->render_pass_cache, he)
zink_destroy_render_pass(screen, he->data);
util_primconvert_destroy(ctx->primconvert);
u_upload_destroy(pctx->stream_uploader);
u_upload_destroy(pctx->const_uploader);
slab_destroy_child(&ctx->transfer_pool);
@@ -3440,18 +3438,6 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
for (int i = 0; i < ARRAY_SIZE(ctx->fb_clears); i++)
util_dynarray_init(&ctx->fb_clears[i].clears, ctx);
int prim_hwsupport = 1 << PIPE_PRIM_POINTS |
1 << PIPE_PRIM_LINES |
1 << PIPE_PRIM_LINE_STRIP |
1 << PIPE_PRIM_TRIANGLES |
1 << PIPE_PRIM_TRIANGLE_STRIP;
if (screen->have_triangle_fans)
prim_hwsupport |= 1 << PIPE_PRIM_TRIANGLE_FAN;
ctx->primconvert = util_primconvert_create(&ctx->base, prim_hwsupport);
if (!ctx->primconvert)
goto fail;
ctx->blitter = util_blitter_create(&ctx->base);
if (!ctx->blitter)
goto fail;
-3
View File
@@ -47,7 +47,6 @@
#include <vulkan/vulkan.h>
struct blitter_context;
struct primconvert_context;
struct list_head;
struct zink_blend_state;
@@ -195,8 +194,6 @@ struct zink_context {
bool fb_changed;
bool rp_changed;
struct primconvert_context *primconvert;
struct zink_framebuffer *framebuffer;
struct zink_framebuffer_clear fb_clears[PIPE_MAX_COLOR_BUFS + 1];
uint16_t clears_enabled;
-1
View File
@@ -7,7 +7,6 @@
#include "zink_state.h"
#include "zink_surface.h"
#include "indices/u_primconvert.h"
#include "tgsi/tgsi_from_mesa.h"
#include "util/hash_table.h"
#include "util/u_debug.h"