mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
i965: Add the TCS/TES state upload atoms to the gen7_atoms list.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
237f2f2d8b
commit
74b83fe368
3 changed files with 14 additions and 30 deletions
|
|
@ -196,10 +196,14 @@ static const struct brw_tracked_state *gen7_render_atoms[] =
|
|||
&gen7_hw_binding_tables, /* Enable hw-generated binding tables for Haswell */
|
||||
|
||||
&brw_vs_image_surfaces, /* Before vs push/pull constants and binding table */
|
||||
&brw_tcs_image_surfaces, /* Before tcs push/pull constants and binding table */
|
||||
&brw_tes_image_surfaces, /* Before tes push/pull constants and binding table */
|
||||
&brw_gs_image_surfaces, /* Before gs push/pull constants and binding table */
|
||||
&brw_wm_image_surfaces, /* Before wm push/pull constants and binding table */
|
||||
|
||||
&gen6_vs_push_constants, /* Before vs_state */
|
||||
&gen7_tcs_push_constants,
|
||||
&gen7_tes_push_constants,
|
||||
&gen6_gs_push_constants, /* Before gs_state */
|
||||
&gen6_wm_push_constants, /* Before wm_surfaces and constant_buffer */
|
||||
|
||||
|
|
@ -209,6 +213,12 @@ static const struct brw_tracked_state *gen7_render_atoms[] =
|
|||
&brw_vs_pull_constants,
|
||||
&brw_vs_ubo_surfaces,
|
||||
&brw_vs_abo_surfaces,
|
||||
&brw_tcs_pull_constants,
|
||||
&brw_tcs_ubo_surfaces,
|
||||
&brw_tcs_abo_surfaces,
|
||||
&brw_tes_pull_constants,
|
||||
&brw_tes_ubo_surfaces,
|
||||
&brw_tes_abo_surfaces,
|
||||
&brw_gs_pull_constants,
|
||||
&brw_gs_ubo_surfaces,
|
||||
&brw_gs_abo_surfaces,
|
||||
|
|
@ -218,11 +228,15 @@ static const struct brw_tracked_state *gen7_render_atoms[] =
|
|||
&gen6_renderbuffer_surfaces,
|
||||
&brw_texture_surfaces,
|
||||
&brw_vs_binding_table,
|
||||
&brw_tcs_binding_table,
|
||||
&brw_tes_binding_table,
|
||||
&brw_gs_binding_table,
|
||||
&brw_wm_binding_table,
|
||||
|
||||
&brw_fs_samplers,
|
||||
&brw_vs_samplers,
|
||||
&brw_tcs_samplers,
|
||||
&brw_tes_samplers,
|
||||
&brw_gs_samplers,
|
||||
&gen6_multisample_state,
|
||||
|
||||
|
|
|
|||
|
|
@ -59,16 +59,6 @@ static void
|
|||
gen7_upload_ds_state(struct brw_context *brw)
|
||||
{
|
||||
/* Disable the DS Unit */
|
||||
BEGIN_BATCH(7);
|
||||
OUT_BATCH(_3DSTATE_CONSTANT_DS << 16 | (7 - 2));
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
BEGIN_BATCH(6);
|
||||
OUT_BATCH(_3DSTATE_DS << 16 | (6 - 2));
|
||||
OUT_BATCH(0);
|
||||
|
|
@ -77,11 +67,6 @@ gen7_upload_ds_state(struct brw_context *brw)
|
|||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
BEGIN_BATCH(2);
|
||||
OUT_BATCH(_3DSTATE_BINDING_TABLE_POINTERS_DS << 16 | (2 - 2));
|
||||
OUT_BATCH(brw->hw_bt_pool.next_offset);
|
||||
ADVANCE_BATCH();
|
||||
}
|
||||
|
||||
const struct brw_tracked_state gen7_ds_state = {
|
||||
|
|
|
|||
|
|
@ -61,16 +61,6 @@ static void
|
|||
gen7_upload_hs_state(struct brw_context *brw)
|
||||
{
|
||||
/* Disable the HS Unit */
|
||||
BEGIN_BATCH(7);
|
||||
OUT_BATCH(_3DSTATE_CONSTANT_HS << 16 | (7 - 2));
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
BEGIN_BATCH(7);
|
||||
OUT_BATCH(_3DSTATE_HS << 16 | (7 - 2));
|
||||
OUT_BATCH(0);
|
||||
|
|
@ -80,11 +70,6 @@ gen7_upload_hs_state(struct brw_context *brw)
|
|||
OUT_BATCH(0);
|
||||
OUT_BATCH(0);
|
||||
ADVANCE_BATCH();
|
||||
|
||||
BEGIN_BATCH(2);
|
||||
OUT_BATCH(_3DSTATE_BINDING_TABLE_POINTERS_HS << 16 | (2 - 2));
|
||||
OUT_BATCH(brw->hw_bt_pool.next_offset);
|
||||
ADVANCE_BATCH();
|
||||
}
|
||||
|
||||
const struct brw_tracked_state gen7_hs_state = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue