Mesa (master): i965: Fix GPU hangs when INTEL_DEBUG=no16 is set.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Sep 1 00:02:01 UTC 2014
Module: Mesa
Branch: master
Commit: 70691f0c283ec4e03523f3a4690d9b897b36872e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=70691f0c283ec4e03523f3a4690d9b897b36872e
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Fri Aug 29 23:10:47 2014 -0700
i965: Fix GPU hangs when INTEL_DEBUG=no16 is set.
The replicated data clear shader needs to be SIMD16, or else the GPU
will hang. So, compile it even if INTEL_DEBUG=no16 is set.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index f52b730..e700ef6 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -3411,7 +3411,8 @@ brw_wm_fs_emit(struct brw_context *brw,
cfg_t *simd16_cfg = NULL;
fs_visitor v2(brw, mem_ctx, key, prog_data, prog, fp, 16);
- if (brw->gen >= 5 && likely(!(INTEL_DEBUG & DEBUG_NO16))) {
+ if (brw->gen >= 5 && likely(!(INTEL_DEBUG & DEBUG_NO16) ||
+ brw->use_rep_send)) {
if (!v.simd16_unsupported) {
/* Try a SIMD16 compile */
v2.import_uniforms(&v);
More information about the mesa-commit
mailing list