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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ gs_unit_create_from_key(struct brw_context *brw,
|
||||
|
||||
memset(&gs, 0, sizeof(gs));
|
||||
|
||||
/* maybe-reloc: populate the background */
|
||||
/* reloc */
|
||||
gs.thread0.grf_reg_count = align(key->total_grf, 16) / 16 - 1;
|
||||
gs.thread0.kernel_start_pointer = 0;
|
||||
|
||||
|
||||
@@ -142,8 +142,7 @@ sf_unit_create_from_key(struct brw_context *brw,
|
||||
int chipset_max_threads;
|
||||
memset(&sf, 0, sizeof(sf));
|
||||
|
||||
|
||||
sf.thread0.grf_reg_count = 0;
|
||||
sf.thread0.grf_reg_count = align(key->total_grf, 16) / 16 - 1;
|
||||
/* reloc */
|
||||
sf.thread0.kernel_start_pointer = 0;
|
||||
|
||||
@@ -179,10 +178,18 @@ sf_unit_create_from_key(struct brw_context *brw,
|
||||
|
||||
/* CACHE_NEW_SF_VP */
|
||||
/* reloc */
|
||||
sf.sf5.sf_viewport_state_offset = 0;
|
||||
|
||||
sf.sf5.viewport_transform = 1;
|
||||
|
||||
if (key->scissor)
|
||||
sf.sf6.scissor = 1;
|
||||
|
||||
if (key->front_face == PIPE_WINDING_CCW)
|
||||
sf.sf5.front_winding = BRW_FRONTWINDING_CCW;
|
||||
else
|
||||
sf.sf5.front_winding = BRW_FRONTWINDING_CW;
|
||||
|
||||
switch (key->cull_mode) {
|
||||
case PIPE_WINDING_CCW:
|
||||
case PIPE_WINDING_CW:
|
||||
|
||||
Reference in New Issue
Block a user