<div dir="ltr"><div><div><div>I had to squash 6, 9, 14, and 15 together in order to be able to review properly. It would be much easier if we split things by component rather than by what mechanical change is being done. I've got more to say on the cover letter. In any case, 6, 9, 14, and 15 are<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br><br></div>If you squashed them together, I wouldn't mind at all.<br><br></div>--Jason<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 16, 2017 at 10:25 AM, Anuj Phogat <span dir="ltr"><<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">V2: Start using gen10 functions isl_gen10*(), gen10_blorp_exec()<br>
gen10_init_atoms() (Jason)<br>
Remove Vulkan changes. Do them later in a separate patch.<br>
<br>
Cc: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
<span class="">Signed-off-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br>
---<br>
src/intel/common/gen_l3_<wbr>config.c | 1 +<br>
src/intel/compiler/brw_eu.c | 2 ++<br>
src/intel/compiler/brw_eu_<wbr>compact.c | 1 +<br>
</span> src/intel/isl/isl.c | 9 +++++++++<br>
src/mesa/drivers/dri/i965/brw_<wbr>blorp.c | 6 ++++++<br>
src/mesa/drivers/dri/i965/brw_<wbr>formatquery.c | 1 +<br>
src/mesa/drivers/dri/i965/brw_<wbr>state_upload.c | 4 +++-<br>
src/mesa/drivers/dri/i965/<wbr>intel_screen.c | 1 +<br>
8 files changed, 24 insertions(+), 1 deletion(-)<br>
<div><div class="h5"><br>
diff --git a/src/intel/common/gen_l3_<wbr>config.c b/src/intel/common/gen_l3_<wbr>config.c<br>
index 0783217..4fe3503 100644<br>
--- a/src/intel/common/gen_l3_<wbr>config.c<br>
+++ b/src/intel/common/gen_l3_<wbr>config.c<br>
@@ -116,6 +116,7 @@ get_l3_configs(const struct gen_device_info *devinfo)<br>
return (devinfo->is_cherryview ? chv_l3_configs : bdw_l3_configs);<br>
<br>
case 9:<br>
+ case 10:<br>
return chv_l3_configs;<br>
<br>
default:<br>
diff --git a/src/intel/compiler/brw_eu.c b/src/intel/compiler/brw_eu.c<br>
index 77400c1..2c0dc27 100644<br>
--- a/src/intel/compiler/brw_eu.c<br>
+++ b/src/intel/compiler/brw_eu.c<br>
@@ -412,6 +412,7 @@ enum gen {<br>
GEN75 = (1 << 5),<br>
GEN8 = (1 << 6),<br>
GEN9 = (1 << 7),<br>
+ GEN10 = (1 << 8),<br>
GEN_ALL = ~0<br>
};<br>
<br>
@@ -688,6 +689,7 @@ gen_from_devinfo(const struct gen_device_info *devinfo)<br>
case 7: return devinfo->is_haswell ? GEN75 : GEN7;<br>
case 8: return GEN8;<br>
case 9: return GEN9;<br>
+ case 10: return GEN10;<br>
default:<br>
unreachable("not reached");<br>
}<br>
diff --git a/src/intel/compiler/brw_eu_<wbr>compact.c b/src/intel/compiler/brw_eu_<wbr>compact.c<br>
index b2af76d..740a395 100644<br>
--- a/src/intel/compiler/brw_eu_<wbr>compact.c<br>
+++ b/src/intel/compiler/brw_eu_<wbr>compact.c<br>
@@ -1362,6 +1362,7 @@ brw_init_compaction_tables(<wbr>const struct gen_device_info *devinfo)<br>
assert(gen8_src_index_table[<wbr>ARRAY_SIZE(gen8_src_index_<wbr>table) - 1] != 0);<br>
<br>
switch (devinfo->gen) {<br>
+ case 10:<br>
case 9:<br>
case 8:<br>
control_index_table = gen8_control_index_table;<br>
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c<br>
</div></div>index f89f351..0ae72a4 100644<br>
--- a/src/intel/isl/isl.c<br>
+++ b/src/intel/isl/isl.c<br>
@@ -1674,6 +1674,9 @@ isl_surf_fill_state_s(const struct isl_device *dev, void *state,<br>
case 9:<br>
isl_gen9_surf_fill_state_s(<wbr>dev, state, info);<br>
break;<br>
+ case 10:<br>
+ isl_gen10_surf_fill_state_s(<wbr>dev, state, info);<br>
+ break;<br>
default:<br>
assert(!"Cannot fill surface state for this gen");<br>
}<br>
@@ -1705,6 +1708,9 @@ isl_buffer_fill_state_s(const struct isl_device *dev, void *state,<br>
case 9:<br>
isl_gen9_buffer_fill_state_s(<wbr>state, info);<br>
break;<br>
+ case 10:<br>
+ isl_gen10_buffer_fill_state_s(<wbr>state, info);<br>
+ break;<br>
default:<br>
assert(!"Cannot fill surface state for this gen");<br>
}<br>
@@ -1772,6 +1778,9 @@ isl_emit_depth_stencil_hiz_s(<wbr>const struct isl_device *dev, void *batch,<br>
case 9:<br>
isl_gen9_emit_depth_stencil_<wbr>hiz_s(dev, batch, info);<br>
break;<br>
+ case 10:<br>
+ isl_gen10_emit_depth_stencil_<wbr>hiz_s(dev, batch, info);<br>
+ break;<br>
default:<br>
assert(!"Cannot fill surface state for this gen");<br>
}<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c b/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c<br>
index b69cb4f..8d3bcbb 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>brw_blorp.c<br>
@@ -99,6 +99,12 @@ brw_blorp_init(struct brw_context *brw)<br>
brw->blorp.mocs.vb = SKL_MOCS_WB;<br>
brw->blorp.exec = gen9_blorp_exec;<br>
break;<br>
+ case 10:<br>
+ brw->blorp.mocs.tex = SKL_MOCS_WB;<br>
+ brw->blorp.mocs.rb = SKL_MOCS_PTE;<br>
+ brw->blorp.mocs.vb = SKL_MOCS_WB;<br>
+ brw->blorp.exec = gen10_blorp_exec;<br>
+ break;<br>
default:<br>
unreachable("Invalid gen");<br>
<span class=""> }<br>
diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_formatquery.c b/src/mesa/drivers/dri/i965/<wbr>brw_formatquery.c<br>
index 96cc6e0..5faf91f 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>brw_formatquery.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>brw_formatquery.c<br>
@@ -37,6 +37,7 @@ brw_query_samples_for_format(<wbr>struct gl_context *ctx, GLenum target,<br>
(void) internalFormat;<br>
<br>
switch (brw->gen) {<br>
+ case 10:<br>
case 9:<br>
samples[0] = 16;<br>
samples[1] = 8;<br>
</span>diff --git a/src/mesa/drivers/dri/i965/<wbr>brw_state_upload.c b/src/mesa/drivers/dri/i965/<wbr>brw_state_upload.c<br>
index bcb7ff1..35962df 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>brw_state_upload.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>brw_state_upload.c<br>
@@ -134,7 +134,9 @@ void brw_init_state( struct brw_context *brw )<br>
<br>
brw_init_caches(brw);<br>
<br>
- if (brw->gen >= 9)<br>
+ if (brw->gen >= 10)<br>
+ gen10_init_atoms(brw);<br>
+ else if (brw->gen >= 9)<br>
gen9_init_atoms(brw);<br>
else if (brw->gen >= 8)<br>
gen8_init_atoms(brw);<br>
<div class="HOEnZb"><div class="h5">diff --git a/src/mesa/drivers/dri/i965/<wbr>intel_screen.c b/src/mesa/drivers/dri/i965/<wbr>intel_screen.c<br>
index 65a0b5c..ec4a3e0 100644<br>
--- a/src/mesa/drivers/dri/i965/<wbr>intel_screen.c<br>
+++ b/src/mesa/drivers/dri/i965/<wbr>intel_screen.c<br>
@@ -1678,6 +1678,7 @@ set_max_gl_versions(struct intel_screen *screen)<br>
const bool has_astc = screen->devinfo.gen >= 9;<br>
<br>
switch (screen->devinfo.gen) {<br>
+ case 10:<br>
case 9:<br>
case 8:<br>
dri_screen->max_gl_core_<wbr>version = 45;<br>
--<br>
2.9.3<br>
<br>
</div></div></blockquote></div><br></div>