mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
[vulkan] Clean out old command buffers from bsp
Missed from the render job cleanup.
This commit is contained in:
parent
f4d6a41901
commit
6c631693bd
2 changed files with 0 additions and 24 deletions
|
@ -332,7 +332,6 @@ typedef struct bspframe_s {
|
|||
uint32_t *entid_data;
|
||||
uint32_t entid_offset;
|
||||
uint32_t entid_count;
|
||||
qfv_cmdbufferset_t cmdSet;
|
||||
} bspframe_t;
|
||||
|
||||
typedef struct bspframeset_s
|
||||
|
|
|
@ -82,13 +82,6 @@ typedef struct bsp_push_constants_s {
|
|||
float turb_scale;
|
||||
} bsp_push_constants_t;
|
||||
|
||||
static const char *bsp_pass_names[] = {
|
||||
"depth",
|
||||
"g-buffer",
|
||||
"sky",
|
||||
"turb",
|
||||
};
|
||||
|
||||
static void
|
||||
add_texture (texture_t *tx, vulkan_ctx_t *ctx)
|
||||
{
|
||||
|
@ -1325,18 +1318,7 @@ Vulkan_Bsp_Setup (vulkan_ctx_t *ctx)
|
|||
for (size_t i = 0; i < frames; i++) {
|
||||
auto bframe = &bctx->frames.a[i];
|
||||
|
||||
DARRAY_INIT (&bframe->cmdSet, QFV_bspNumPasses);
|
||||
DARRAY_RESIZE (&bframe->cmdSet, QFV_bspNumPasses);
|
||||
bframe->cmdSet.grow = 0;
|
||||
|
||||
QFV_AllocateCommandBuffers (device, ctx->cmdpool, 1, &bframe->cmdSet);
|
||||
|
||||
for (int j = 0; j < QFV_bspNumPasses; j++) {
|
||||
QFV_duSetObjectName (device, VK_OBJECT_TYPE_COMMAND_BUFFER,
|
||||
bframe->cmdSet.a[j],
|
||||
va (ctx->va_ctx, "cmd:bsp:%zd:%s", i,
|
||||
bsp_pass_names[j]));
|
||||
}
|
||||
bframe->entid_data = entid_data + i * entid_count;
|
||||
bframe->entid_offset = i * entid_size;
|
||||
}
|
||||
|
@ -1360,11 +1342,6 @@ Vulkan_Bsp_Shutdown (struct vulkan_ctx_s *ctx)
|
|||
qfv_devfuncs_t *dfunc = device->funcs;
|
||||
bspctx_t *bctx = ctx->bsp_context;
|
||||
|
||||
for (size_t i = 0; i < bctx->frames.size; i++) {
|
||||
auto bframe = &bctx->frames.a[i];
|
||||
free (bframe->cmdSet.a);
|
||||
}
|
||||
|
||||
DARRAY_CLEAR (&bctx->registered_textures);
|
||||
for (int i = 0; i < bctx->main_pass.num_queues; i++) {
|
||||
DARRAY_CLEAR (&bctx->main_pass.draw_queues[i]);
|
||||
|
|
Loading…
Reference in a new issue