mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 16:10:33 +01:00
radv: use IB for the GFX preamble on GFX6
GFX6 supports IBs without any issues. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23670>
This commit is contained in:
parent
e20a0f32f2
commit
a5cdc4840d
3 changed files with 4 additions and 5 deletions
|
|
@ -1000,9 +1000,8 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if (device->physical_device->rad_info.gfx_level >= GFX7 &&
|
||||
!(device->instance->debug_flags & RADV_DEBUG_NO_IBS))
|
||||
cik_create_gfx_config(device);
|
||||
if (!(device->instance->debug_flags & RADV_DEBUG_NO_IBS))
|
||||
radv_create_gfx_config(device);
|
||||
|
||||
struct vk_pipeline_cache_create_info info = {0};
|
||||
device->mem_cache = vk_pipeline_cache_create(&device->vk, &info, NULL);
|
||||
|
|
|
|||
|
|
@ -1898,7 +1898,7 @@ void radv_emit_streamout_enable(struct radv_cmd_buffer *cmd_buffer);
|
|||
void si_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs);
|
||||
void si_emit_compute(struct radv_device *device, struct radeon_cmdbuf *cs);
|
||||
|
||||
void cik_create_gfx_config(struct radv_device *device);
|
||||
void radv_create_gfx_config(struct radv_device *device);
|
||||
|
||||
void si_write_scissors(struct radeon_cmdbuf *cs, int count, const VkRect2D *scissors, const VkViewport *viewports);
|
||||
|
||||
|
|
|
|||
|
|
@ -618,7 +618,7 @@ si_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs)
|
|||
}
|
||||
|
||||
void
|
||||
cik_create_gfx_config(struct radv_device *device)
|
||||
radv_create_gfx_config(struct radv_device *device)
|
||||
{
|
||||
struct radeon_cmdbuf *cs = device->ws->cs_create(device->ws, AMD_IP_GFX, false);
|
||||
if (!cs)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue