intel: BINDING_TABLE_STATEs are in surface state bo
Logically, we want to write BINDING_TABLE_STATEs with cmd_surface_write()
instead of cmd_state_write(). They are the same now, but we are going to
change that.
diff --git a/icd/intel/cmd_pipeline.c b/icd/intel/cmd_pipeline.c
index 2859a0a..d600a0a 100644
--- a/icd/intel/cmd_pipeline.c
+++ b/icd/intel/cmd_pipeline.c
@@ -1630,7 +1630,7 @@
binding_table[i] = offset;
}
- return cmd_state_write(cmd, INTEL_CMD_ITEM_BINDING_TABLE,
+ return cmd_surface_write(cmd, INTEL_CMD_ITEM_BINDING_TABLE,
GEN6_ALIGNMENT_BINDING_TABLE_STATE,
surface_count, binding_table);
}
@@ -2141,7 +2141,7 @@
}
/* BINDING_TABLE */
- offset = cmd_state_write(cmd, INTEL_CMD_ITEM_BINDING_TABLE,
+ offset = cmd_surface_write(cmd, INTEL_CMD_ITEM_BINDING_TABLE,
GEN6_ALIGNMENT_BINDING_TABLE_STATE,
2, binding_table);