[Vulkan] Fix a couple validation errors
This commit is contained in:
@@ -147,10 +147,10 @@ VkResult xe::gpu::vulkan::BufferCache::CreateVertexDescriptorPool() {
|
||||
std::vector<VkDescriptorPoolSize> pool_sizes;
|
||||
pool_sizes.push_back({
|
||||
VK_DESCRIPTOR_TYPE_STORAGE_BUFFER,
|
||||
32768,
|
||||
65536,
|
||||
});
|
||||
vertex_descriptor_pool_ =
|
||||
std::make_unique<ui::vulkan::DescriptorPool>(*device_, 32768, pool_sizes);
|
||||
std::make_unique<ui::vulkan::DescriptorPool>(*device_, 65536, pool_sizes);
|
||||
|
||||
// 32 storage buffers available to vertex shader.
|
||||
// TODO(DrChat): In the future, this could hold memexport staging data.
|
||||
@@ -599,6 +599,8 @@ VkDescriptorSet BufferCache::PrepareVertexSet(
|
||||
// This may not be possible (with indexed vfetch).
|
||||
uint32_t source_length = fetch->size * 4;
|
||||
uint32_t physical_address = fetch->address << 2;
|
||||
|
||||
// TODO(DrChat): This needs to be put in gpu::CommandProcessor
|
||||
// trace_writer_.WriteMemoryRead(physical_address, source_length);
|
||||
|
||||
// Upload (or get a cached copy of) the buffer.
|
||||
|
||||
Reference in New Issue
Block a user