summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-08-02 19:46:15 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-08-02 19:46:15 -0700
commitb57ccb682cb3dea3e26c6f1b0c709e63dfde0d31 (patch)
tree69fd53bd95af34e30dbf8e014ebe72424f8af3ba
parent82037a12758c41a304f2e0bbd033d3345cccbe1a (diff)
Replace the SF max threads setting with a define for easier tweaking.
Tweak it to 1 for now.
-rw-r--r--src/i830_video.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index 97c9d271..a8ffca7d 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -2648,7 +2648,11 @@ static const CARD32 sip_kernel_static[][4] = {
#define SF_KERNEL_NUM_GRF 10
#define SF_KERNEL_NUM_URB 8
+#if 0
+#define SF_MAX_THREADS MIN(12, URB_SF_ENTRIES / 2)
+#else
#define SF_MAX_THREADS 1
+#endif
static const CARD32 sf_kernel_static[][4] = {
/* send 0 (1) g6<1>F g1.12<0,1,0>F math mlen 1 rlen 1 { align1 + } */
@@ -3043,7 +3047,7 @@ BroadwaterDisplayVideoTextured(ScrnInfoPtr pScrn, I830PortPrivPtr pPriv, int id,
sf_state->thread3.urb_entry_read_length = 1; /* 1 URB per vertex */
sf_state->thread3.urb_entry_read_offset = 0;
sf_state->thread3.dispatch_grf_start_reg = 3;
- sf_state->thread4.max_threads = MIN(12, URB_SF_ENTRIES / 2) - 1;
+ sf_state->thread4.max_threads = SF_MAX_THREADS - 1;
sf_state->thread4.urb_entry_allocation_size = URB_SF_ENTRY_SIZE - 1;
sf_state->thread4.nr_urb_entries = URB_SF_ENTRIES;
sf_state->thread4.stats_enable = 1;