From: Kristian Høgsberg Kristensen <k...@bitplanet.net> Here's v2 of the series. Incorporates Topi's and Jason comments, but also refactors the miptree creation a bit. The old series broke support for certain EGLImages (images without a planar_format), but they're now working as they did before.
Kristian Kristian Høgsberg Kristensen (11): nir: Add new 'plane' texture source type nir: Handle NULL in nir_copy_deref() nir: Add a lowering pass for YUV textures i965: Add new intel_set_texture_image_mt() helper i965: Use intel_set_texture_image_mt() in intelSetTexBuffer2() i965: Refactor intel_set_texture_image_bo() to create_mt_for_dri_image() i965: Create multiple miptrees for planar YUV images i965: Support textures with multiple planes i965: Invoke lowering pass for YUV textures i965: Allow creating planar YUV __DRIimages dri: Add YVU formats include/GL/internal/dri_interface.h | 5 + src/compiler/nir/nir.c | 3 + src/compiler/nir/nir.h | 8 + src/compiler/nir/nir_lower_tex.c | 119 ++++++++++++++ src/compiler/nir/nir_print.c | 3 + src/mesa/drivers/dri/i965/brw_compiler.h | 8 + src/mesa/drivers/dri/i965/brw_context.h | 2 +- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 13 ++ src/mesa/drivers/dri/i965/brw_nir.c | 4 + src/mesa/drivers/dri/i965/brw_shader.cpp | 9 ++ src/mesa/drivers/dri/i965/brw_wm.c | 29 ++++ src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 38 +++-- src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 3 +- src/mesa/drivers/dri/i965/gen8_surface_state.c | 12 +- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 3 + src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 5 + src/mesa/drivers/dri/i965/intel_screen.c | 59 +++++-- src/mesa/drivers/dri/i965/intel_tex_image.c | 188 ++++++++++++++-------- src/mesa/drivers/dri/i965/intel_tex_obj.h | 2 + 19 files changed, 414 insertions(+), 99 deletions(-) -- 2.5.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev