mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
radv: do not emit PKT3_CONTEXT_CONTROL with AMDGPU 3.6.0+
It's emitted by the kernel. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
6a09405368
commit
2ca8629fa9
2 changed files with 12 additions and 6 deletions
|
|
@ -2010,9 +2010,12 @@ VkResult radv_CreateDevice(
|
|||
device->empty_cs[family] = device->ws->cs_create(device->ws, family);
|
||||
switch (family) {
|
||||
case RADV_QUEUE_GENERAL:
|
||||
radeon_emit(device->empty_cs[family], PKT3(PKT3_CONTEXT_CONTROL, 1, 0));
|
||||
radeon_emit(device->empty_cs[family], CONTEXT_CONTROL_LOAD_ENABLE(1));
|
||||
radeon_emit(device->empty_cs[family], CONTEXT_CONTROL_SHADOW_ENABLE(1));
|
||||
/* Since amdgpu version 3.6.0, CONTEXT_CONTROL is emitted by the kernel */
|
||||
if (device->physical_device->rad_info.drm_minor < 6) {
|
||||
radeon_emit(device->empty_cs[family], PKT3(PKT3_CONTEXT_CONTROL, 1, 0));
|
||||
radeon_emit(device->empty_cs[family], CONTEXT_CONTROL_LOAD_ENABLE(1));
|
||||
radeon_emit(device->empty_cs[family], CONTEXT_CONTROL_SHADOW_ENABLE(1));
|
||||
}
|
||||
break;
|
||||
case RADV_QUEUE_COMPUTE:
|
||||
radeon_emit(device->empty_cs[family], PKT3(PKT3_NOP, 0, 0));
|
||||
|
|
|
|||
|
|
@ -161,9 +161,12 @@ si_emit_graphics(struct radv_physical_device *physical_device,
|
|||
{
|
||||
int i;
|
||||
|
||||
radeon_emit(cs, PKT3(PKT3_CONTEXT_CONTROL, 1, 0));
|
||||
radeon_emit(cs, CONTEXT_CONTROL_LOAD_ENABLE(1));
|
||||
radeon_emit(cs, CONTEXT_CONTROL_SHADOW_ENABLE(1));
|
||||
/* Since amdgpu version 3.6.0, CONTEXT_CONTROL is emitted by the kernel */
|
||||
if (physical_device->rad_info.drm_minor < 6) {
|
||||
radeon_emit(cs, PKT3(PKT3_CONTEXT_CONTROL, 1, 0));
|
||||
radeon_emit(cs, CONTEXT_CONTROL_LOAD_ENABLE(1));
|
||||
radeon_emit(cs, CONTEXT_CONTROL_SHADOW_ENABLE(1));
|
||||
}
|
||||
|
||||
if (physical_device->has_clear_state) {
|
||||
radeon_emit(cs, PKT3(PKT3_CLEAR_STATE, 0, 0));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue