intel: extend GEN_RENDER_CMD for different GENs
diff --git a/icd/intel/cmd_pipeline.c b/icd/intel/cmd_pipeline.c
index ca3c2db..cecdc83 100644
--- a/icd/intel/cmd_pipeline.c
+++ b/icd/intel/cmd_pipeline.c
@@ -66,7 +66,7 @@
CMD_ASSERT(cmd, 6, 6);
- dw0 = GEN_RENDER_CMD(3D, 3DPRIMITIVE) |
+ dw0 = GEN_RENDER_CMD(3D, GEN6, 3DPRIMITIVE) |
translate_primitive_topology(topo) << GEN6_3DPRIM_DW0_TYPE__SHIFT |
(cmd_len - 2);
@@ -96,7 +96,7 @@
CMD_ASSERT(cmd, 7, 7.5);
- dw0 = GEN_RENDER_CMD(3D, 3DPRIMITIVE) | (cmd_len - 2);
+ dw0 = GEN_RENDER_CMD(3D, GEN6, 3DPRIMITIVE) | (cmd_len - 2);
dw1 = translate_primitive_topology(topo) << GEN7_3DPRIM_DW1_TYPE__SHIFT;
if (indexed)
@@ -124,7 +124,7 @@
CMD_ASSERT(cmd, 6, 7.5);
- dw0 = GEN_RENDER_CMD(3D, 3DSTATE_INDEX_BUFFER) | (cmd_len - 2);
+ dw0 = GEN_RENDER_CMD(3D, GEN6, 3DSTATE_INDEX_BUFFER) | (cmd_len - 2);
/* the bit is moved to 3DSTATE_VF */
if (cmd_gen(cmd) >= INTEL_GEN(7.5))