<div dir="ltr"><div class="gmail_extra">I've read through the whole thing and given reviews on about 75% of it. I did have some questions though.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 18, 2017 at 1:46 AM, Topi Pohjolainen <span dir="ltr"><<a href="mailto:topi.pohjolainen@gmail.com" target="_blank">topi.pohjolainen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">First four patches are mechanical replacing intel_mipmap_tree native<br>
members with equivalent found in intel_mipmap_tree::surf. This helps<br>
to reduce back and forth churn, i.e., helps to avoid number of<br>
"if (mt->surf.size > 0)"-conditionals that would get dropped in the<br>
end. Assumption is that this mixed used of intel_mipmap_tree::surf<br>
and native would be short lived.<br>
<br>
Patch number five is of the same nature - it helps to re-use current<br>
logic without checks for isl. Once all surfaces are transitioned it<br>
is pretty easy to drop intel_mipmap_tree::cpp (we might even decide<br>
to keep it instead of calculating it on-demand).<br>
<br>
Patches 6-15, 18 and 19 in turn introduce conditional<br>
"if (mt->surf.size)" blocks that can't be trivially avoided. I<br>
considered using isl_surf::logical_level0_px/<wbr>phys_level0_sa instead<br>
of native intel_mipmap_tree equivalent but that gets a lot more<br>
complicated than simply introducing the conditional blocks that one<br>
removes in the end.<br>
These patches pave the way quite a bit also for color surfaces.<br>
<br>
Patches 16 and 17 switch stencil surfaces to isl and finally the last<br>
does the same for depth surfaces.<br>
<br>
Topi Pohjolainen (22):<br>
i965/miptree: Switch to isl_surf::msaa_layout<br>
i965/miptree: Switch to isl_surf::samples<br>
i965/miptree: Switch to isl_surf::tiling<br>
i965/miptree: Switch to isl_surf::row_pitch<br>
i965/miptree: Store chars-per-pixel even for isl based<br>
i965: Prepare blit engine for isl based miptrees<br>
i965/miptree: Prepare intel_miptree_copy() for isl based<br>
i965/wm: Prepare image surfaces for isl based<br>
i965: Prepare tex (sub)image for isl based<br>
i965: Refactor miptree to isl converter and adjustment<br>
i965: Prepare tex, img and rt state emission for isl based miptrees<br>
i965: Prepare image setup from miptree for isl based<br>
i965/fbo: Add support for isl-based miptrees in rb wrapper<br>
i965/miptree: Add support for imported bo offsets for isl based<br>
i965/miptree: Prepare compressed offsets for isl based<br>
i965/miptree: Represent w-tiled stencil surfaces with isl<br>
i965/miptree: Represent y-tiled stencil copies with isl<br>
i965/miptree: Prepare aux state map for isl based<br>
i965/miptree: Prepare 3D surfaces with physical 2D layout<br>
intel/isl/gen4: Represent cube maps with 3D layout<br>
i965: Drop redundant check for non-tiled depth buffer<br>
i965: Represent depth surfaces with isl<br>
<br>
src/intel/isl/isl.c | 40 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>blorp.c | 19 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>clear.c | 5 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>context.c | 2 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>meta_util.c | 2 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>misc_state.c | 11 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>tex_layout.c | 41 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>wm.c | 6 +-<br>
src/mesa/drivers/dri/i965/brw_<wbr>wm_surface_state.c | 154 ++++---<br>
src/mesa/drivers/dri/i965/<wbr>gen6_depth_state.c | 5 +-<br>
src/mesa/drivers/dri/i965/<wbr>gen7_misc_state.c | 22 +-<br>
src/mesa/drivers/dri/i965/<wbr>gen8_depth_state.c | 31 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_blit.c | 107 +++--<br>
src/mesa/drivers/dri/i965/<wbr>intel_blit.h | 21 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_fbo.c | 19 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c | 505 +++++++++++++----------<br>
src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.h | 81 +---<br>
src/mesa/drivers/dri/i965/<wbr>intel_pixel_bitmap.c | 4 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_pixel_copy.c | 2 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_pixel_read.c | 10 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_screen.c | 22 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_tex_image.c | 36 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_tex_subimage.c | 18 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_tiled_memcpy.c | 12 +-<br>
src/mesa/drivers/dri/i965/<wbr>intel_tiled_memcpy.h | 4 +-<br>
25 files changed, 637 insertions(+), 542 deletions(-)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.11.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div></div>