From 47f1d9deffee8aeb2d73d8e06f829d32125f944c Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Sun, 23 Oct 2011 21:42:27 -0700 Subject: i965: Remove "single threaded" INTEL_DEBUG mode. According to the docs for 3DSTATE_PS (Gen7+) and 3DSTATE_WM (Gen6), there is a platform dependent value for the minimum number of pixel shader threads. It may also vary based on whether WIZ Hashing is on. For example, Ivybridge requires at least 4 threads if WIZ hashing is disabled, and 8 if it's enabled. Programming it to use less threads is illegal. Sandybridge appears to have similar restrictions. So on newer platforms, INTEL_DEBUG=sing will probably just hang the GPU. Rather than try to patch it up for newer platforms and extend it to support geometry shaders, just remove it as it isn't that useful anyway. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_clip_state.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/mesa/drivers/dri/i965/brw_clip_state.c') diff --git a/src/mesa/drivers/dri/i965/brw_clip_state.c b/src/mesa/drivers/dri/i965/brw_clip_state.c index 31fbadf5ef2..507b534dfd2 100644 --- a/src/mesa/drivers/dri/i965/brw_clip_state.c +++ b/src/mesa/drivers/dri/i965/brw_clip_state.c @@ -89,9 +89,6 @@ brw_prepare_clip_unit(struct brw_context *brw) clip->thread4.max_threads = 1 - 1; } - if (unlikely(INTEL_DEBUG & DEBUG_SINGLE_THREAD)) - clip->thread4.max_threads = 0; - if (unlikely(INTEL_DEBUG & DEBUG_STATS)) clip->thread4.stats_enable = 1; -- cgit v1.2.3