From 6171e40c390cdd587a1d5c1526844a1e8c59b1ae Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Mon, 29 Jul 2024 17:25:37 -0700 Subject: [PATCH] nv2a/vk: Minor cleanup --- hw/xbox/nv2a/pgraph/vk/texture.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/xbox/nv2a/pgraph/vk/texture.c b/hw/xbox/nv2a/pgraph/vk/texture.c index f925bb19e3..c97b6392d0 100644 --- a/hw/xbox/nv2a/pgraph/vk/texture.c +++ b/hw/xbox/nv2a/pgraph/vk/texture.c @@ -229,11 +229,7 @@ static TextureLayout *get_texture_layout(PGRAPHState *pg, int texture_idx) } if (s.dimensionality == 2) { - hwaddr layer_size = 0; - if (s.cubemap) { - layer_size = get_cubemap_layer_size(pg, s); - } - + hwaddr layer_size = s.cubemap ? get_cubemap_layer_size(pg, s) : 0; const int num_layers = s.cubemap ? 6 : 1; for (int layer = 0; layer < num_layers; layer++) { unsigned int width = adjusted_width, height = adjusted_height;