summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_clip_state.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-06 07:47:07 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-06 07:47:07 +0000
commita49ccf0fd25575c4e40398e5d22f3931e80921f8 (patch)
tree3b820c72e1093fd76924b0d9860e8946d5226b21 /src/gallium/drivers/i965/brw_clip_state.c
parentc93d9c1ce350241c32cbf882d247423cea4cf9c4 (diff)
i965g: restore code to populate the relocation background
I'm emitting this in two places now, to the data presented for upload and also in the delta field of the reloc struct. Probably want to remove the delta field and just pull the background from the key.
Diffstat (limited to 'src/gallium/drivers/i965/brw_clip_state.c')
-rw-r--r--src/gallium/drivers/i965/brw_clip_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_clip_state.c b/src/gallium/drivers/i965/brw_clip_state.c
index 3f2b9701e6..467364e884 100644
--- a/src/gallium/drivers/i965/brw_clip_state.c
+++ b/src/gallium/drivers/i965/brw_clip_state.c
@@ -83,6 +83,7 @@ clip_unit_create_from_key(struct brw_context *brw,
memset(&clip, 0, sizeof(clip));
+ clip.thread0.grf_reg_count = align(key->total_grf, 16) / 16 - 1;
/* reloc */
clip.thread0.kernel_start_pointer = 0;