mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
Revert "radv: do not emit PKT3_CONTEXT_CONTROL with AMDGPU 3.6.0+"
This reverts commit2ca8629fa9. This was initially ported from RadeonSI, but in the meantime it has been reverted because it might hang. Be conservative and re-introduce this packet emission. Unfortunately this doesn't fix anything known. Cc: 19.2 <mesa-stable@lists.freedesktop.org> Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit4a3bdc6d22)
This commit is contained in:
parent
c1ca1602dd
commit
45ebe99a88
2 changed files with 6 additions and 12 deletions
|
|
@ -2057,12 +2057,9 @@ VkResult radv_CreateDevice(
|
|||
device->empty_cs[family] = device->ws->cs_create(device->ws, family);
|
||||
switch (family) {
|
||||
case RADV_QUEUE_GENERAL:
|
||||
/* 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));
|
||||
}
|
||||
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,12 +161,9 @@ si_emit_graphics(struct radv_physical_device *physical_device,
|
|||
{
|
||||
int i;
|
||||
|
||||
/* 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));
|
||||
}
|
||||
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