We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 442ce64 commit c678433Copy full SHA for c678433
hw/xbox/nv2a/pgraph/vk/texture.c
@@ -1344,8 +1344,8 @@ static void create_texture(PGRAPHState *pg, int texture_idx)
1344
GET_MASK(address, NV_PGRAPH_TEXADDRESS0_ADDRU)),
1345
.addressModeV = lookup_texture_address_mode(
1346
GET_MASK(address, NV_PGRAPH_TEXADDRESS0_ADDRV)),
1347
- .addressModeW = lookup_texture_address_mode(
1348
- GET_MASK(address, NV_PGRAPH_TEXADDRESS0_ADDRP)),
+ .addressModeW = (state.dimensionality > 2) ? lookup_texture_address_mode(
+ GET_MASK(address, NV_PGRAPH_TEXADDRESS0_ADDRP)) : 0,
1349
.anisotropyEnable = VK_FALSE,
1350
// .anisotropyEnable = VK_TRUE,
1351
// .maxAnisotropy = properties.limits.maxSamplerAnisotropy,
0 commit comments