Mesa (master): radv: fix CLEAR_STATE packet length.

Dave Airlie airlied at kemper.freedesktop.org
Thu Oct 19 22:57:39 UTC 2017


Module: Mesa
Branch: master
Commit: c8eb3558cc246ecd053ff50191f94f1535013688
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c8eb3558cc246ecd053ff50191f94f1535013688

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Oct 19 04:52:29 2017 +0100

radv: fix CLEAR_STATE packet length.

Looking at shader traces I noticed some registers were missing,
one of them was being eaten by the wrong clear state length.

Fixes: 4f42ea4dc (radv: use CLEAR_STATE for initializing some registers)
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/amd/vulkan/si_cmd_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c
index 1e8b43d4fa..690f30b6ab 100644
--- a/src/amd/vulkan/si_cmd_buffer.c
+++ b/src/amd/vulkan/si_cmd_buffer.c
@@ -341,7 +341,7 @@ si_emit_config(struct radv_physical_device *physical_device,
 	radeon_emit(cs, CONTEXT_CONTROL_SHADOW_ENABLE(1));
 
 	if (physical_device->has_clear_state) {
-		radeon_emit(cs, PKT3(PKT3_CLEAR_STATE, 1, 0));
+		radeon_emit(cs, PKT3(PKT3_CLEAR_STATE, 0, 0));
 		radeon_emit(cs, 0);
 	}
 




More information about the mesa-commit mailing list