965: cleanups to state emission from aperture checking and state ordering.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include "macros.h"
|
||||
#include "enums.h"
|
||||
|
||||
static int upload_cc_vp( struct brw_context *brw )
|
||||
static int prepare_cc_vp( struct brw_context *brw )
|
||||
{
|
||||
struct brw_cc_viewport ccv;
|
||||
|
||||
@@ -57,7 +57,7 @@ const struct brw_tracked_state brw_cc_vp = {
|
||||
.brw = BRW_NEW_CONTEXT,
|
||||
.cache = 0
|
||||
},
|
||||
.prepare = upload_cc_vp
|
||||
.prepare = prepare_cc_vp
|
||||
};
|
||||
|
||||
struct brw_cc_unit_key {
|
||||
|
||||
@@ -156,19 +156,7 @@ void brw_upload_constant_buffer_state(struct brw_context *brw)
|
||||
|
||||
assert(brw->urb.nr_cs_entries);
|
||||
BRW_CACHED_BATCH_STRUCT(brw, &cbs);
|
||||
}
|
||||
|
||||
#if 0
|
||||
const struct brw_tracked_state brw_constant_buffer_state = {
|
||||
.dirty = {
|
||||
.mesa = 0,
|
||||
.brw = BRW_NEW_URB_FENCE,
|
||||
.cache = 0
|
||||
},
|
||||
.update = brw_upload_constant_buffer_state
|
||||
};
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
static GLfloat fixed_plane[6][4] = {
|
||||
{ 0, 0, -1, 1 },
|
||||
|
||||
@@ -133,24 +133,6 @@ static void upload_pipelined_state_pointers(struct brw_context *brw )
|
||||
brw->state.dirty.brw |= BRW_NEW_PSP;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Combined into brw_psp_urb_cbs */
|
||||
const struct brw_tracked_state brw_pipelined_state_pointers = {
|
||||
.dirty = {
|
||||
.mesa = 0,
|
||||
.brw = BRW_NEW_METAOPS | BRW_NEW_BATCH,
|
||||
.cache = (CACHE_NEW_VS_UNIT |
|
||||
CACHE_NEW_GS_UNIT |
|
||||
CACHE_NEW_GS_PROG |
|
||||
CACHE_NEW_CLIP_UNIT |
|
||||
CACHE_NEW_SF_UNIT |
|
||||
CACHE_NEW_WM_UNIT |
|
||||
CACHE_NEW_CC_UNIT)
|
||||
},
|
||||
.emit = upload_pipelined_state_pointers
|
||||
};
|
||||
#endif
|
||||
|
||||
static void upload_psp_urb_cbs(struct brw_context *brw )
|
||||
{
|
||||
upload_pipelined_state_pointers(brw);
|
||||
@@ -158,7 +140,6 @@ static void upload_psp_urb_cbs(struct brw_context *brw )
|
||||
brw_upload_constant_buffer_state(brw);
|
||||
}
|
||||
|
||||
|
||||
const struct brw_tracked_state brw_psp_urb_cbs = {
|
||||
.dirty = {
|
||||
.mesa = 0,
|
||||
|
||||
@@ -187,15 +187,3 @@ void brw_upload_urb_fence(struct brw_context *brw)
|
||||
|
||||
BRW_BATCH_STRUCT(brw, &uf);
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
const struct brw_tracked_state brw_urb_fence = {
|
||||
.dirty = {
|
||||
.mesa = 0,
|
||||
.brw = BRW_NEW_URB_FENCE | BRW_NEW_PSP,
|
||||
.cache = 0
|
||||
},
|
||||
.update = brw_upload_urb_fence
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user