mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a/vk: Don't set compressed, swizzled when attribute is uniform
This commit is contained in:
committed by
mborgerson
parent
4665515d80
commit
6e3dfb36d8
@@ -193,13 +193,6 @@ void pgraph_vk_bind_vertex_attributes(NV2AState *d, unsigned int min_element,
|
||||
hwaddr attrib_data_addr;
|
||||
size_t stride;
|
||||
|
||||
if (needs_conversion) {
|
||||
pg->compressed_attrs |= (1 << i);
|
||||
}
|
||||
if (d3d_swizzle) {
|
||||
pg->swizzle_attrs |= (1 << i);
|
||||
}
|
||||
|
||||
hwaddr start = 0;
|
||||
if (inline_data) {
|
||||
attrib_data_addr = attr->inline_array_offset;
|
||||
@@ -264,6 +257,13 @@ void pgraph_vk_bind_vertex_attributes(NV2AState *d, unsigned int min_element,
|
||||
|
||||
r->vertex_attribute_offsets[i] = attrib_data_addr;
|
||||
|
||||
if (needs_conversion) {
|
||||
pg->compressed_attrs |= (1 << i);
|
||||
}
|
||||
if (d3d_swizzle) {
|
||||
pg->swizzle_attrs |= (1 << i);
|
||||
}
|
||||
|
||||
NV2A_VK_DGROUP_END();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user