[Mesa-dev] [PATCH 00/10] i965: add ARB_shader_texture_image_samples support

Francisco Jerez currojerez at riseup.net
Fri Aug 28 03:58:26 PDT 2015


Ilia Mirkin <imirkin at alum.mit.edu> writes:

> This should include everything. I sent a test for textureSamples to
> piglit a while ago, not sure how to test imageSamples -- apparently ms
> images aren't entirely supported on i965? But I'm not sure via what
> feat that happens.
>
i965 doesn't support MS images because on Gen7-8 it would involve either
converting all MS textures to UMS on the fly or implementing the
compressed MS layout in software, which would be even more madness.  On
Gen9 and up though it's supported natively by the hardware and it
shouldn't be too difficult to implement, I just haven't had the chance
to do the work yet.

> I'll send some tests for compiler tests though.
>
> Ilia Mirkin (10):
>   mesa: add infra for ARB_shader_texture_image_samples
>   glsl: add ir_texture_samples texture opcode
>   nir: add nir_texop_texture_samples and convert from glsl
>   glsl: add ARB_shader_texture_image_samples infrastructure
>   glsl: add support for the textureSamples function
>   i965: add support for textureSamples function
>   glsl: add support for the imageSamples function
>   nir: convert glsl imageSamples into a new intrinsic
>   i965: add handling for imageSamples
>   i965: enable ARB_shader_texture_image_samples
>
>  src/glsl/builtin_functions.cpp                   | 79 +++++++++++++++++++++++-
>  src/glsl/glcpp/glcpp-parse.y                     |  3 +
>  src/glsl/glsl_parser_extras.cpp                  |  1 +
>  src/glsl/glsl_parser_extras.h                    |  2 +
>  src/glsl/ir.cpp                                  |  5 +-
>  src/glsl/ir.h                                    |  3 +-
>  src/glsl/ir_clone.cpp                            |  1 +
>  src/glsl/ir_equals.cpp                           |  1 +
>  src/glsl/ir_hv_accept.cpp                        |  1 +
>  src/glsl/ir_print_visitor.cpp                    |  6 +-
>  src/glsl/ir_reader.cpp                           |  6 +-
>  src/glsl/ir_rvalue_visitor.cpp                   |  1 +
>  src/glsl/nir/glsl_to_nir.cpp                     | 11 +++-
>  src/glsl/nir/nir.h                               |  4 +-
>  src/glsl/nir/nir_intrinsics.h                    |  2 +
>  src/glsl/nir/nir_print.c                         |  3 +
>  src/glsl/opt_tree_grafting.cpp                   |  1 +
>  src/mesa/drivers/dri/i965/brw_defines.h          |  3 +
>  src/mesa/drivers/dri/i965/brw_disasm.c           |  1 +
>  src/mesa/drivers/dri/i965/brw_fs.cpp             |  7 +++
>  src/mesa/drivers/dri/i965/brw_fs_generator.cpp   |  4 ++
>  src/mesa/drivers/dri/i965/brw_fs_nir.cpp         |  6 ++
>  src/mesa/drivers/dri/i965/brw_fs_visitor.cpp     |  3 +
>  src/mesa/drivers/dri/i965/brw_shader.cpp         |  4 ++
>  src/mesa/drivers/dri/i965/brw_vec4.cpp           |  1 +
>  src/mesa/drivers/dri/i965/brw_vec4_generator.cpp |  4 ++
>  src/mesa/drivers/dri/i965/brw_vec4_nir.cpp       |  1 +
>  src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp   | 10 ++-
>  src/mesa/drivers/dri/i965/intel_extensions.c     |  1 +
>  src/mesa/main/extensions.c                       |  1 +
>  src/mesa/main/mtypes.h                           |  1 +
>  src/mesa/program/ir_to_mesa.cpp                  |  3 +
>  src/mesa/state_tracker/st_glsl_to_tgsi.cpp       |  2 +
>  33 files changed, 170 insertions(+), 12 deletions(-)
>
> -- 
> 2.4.6
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150828/138a97e5/attachment.sig>


More information about the mesa-dev mailing list