tornavis/source/blender/draw/intern
Jason Fielder 18f7d158fe GPU: cleanup texture view usage flags
Texture usage flag `GPU_TEXTURE_USAGE_MIP_SWIZZLE_VIEW`
was originally implemented and used too conservatively for many
cases in which the underlying API flags were not required.

Renaming to `GPU_TEXTURE_USAGE_FORMAT_VIEW` to reflect
the only essential use case for when a texture view is initialized with
a different texture format to the source texture. Texture views can
still be created without this flag when mip range or base level is
adjusted,

This flag is still required by stencil views and internally by the Metal
backend for certain feature support such as SRGB render toggling.

Patch also includes some small changes to the Metal backend to
adapt to this new compatibility and correctly capture all texture view
use-cases.

Related to #115269

Authored by Apple: Michael Parkin-White

Pull Request: https://projects.blender.org/blender/blender/pulls/115300
2023-11-24 15:21:00 +01:00
..
mesh_extractors Cleanup: Move draw_subdivision.h to C++ 2023-11-20 22:07:11 -05:00
shaders Fix #115144: isect_data_setup compiler error 2023-11-23 16:02:10 +01:00
DRW_gpu_wrapper.hh Fix #114742: Draw: Buffers never shrink 2023-11-20 12:23:12 +01:00
DRW_render.h Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
attribute_convert.cc Fix: Windows build error from missing template argument deduction 2023-11-07 11:19:43 +01:00
attribute_convert.hh Cleanup: Add missing forward struct declaration 2023-11-19 17:31:37 -05:00
draw_attributes.cc Cleanup: Remove unnecessary includes from C++ data structure headers 2023-09-01 21:37:11 +02:00
draw_attributes.hh License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_cache.cc Cleanup: Move BKE_object.hh to C++ 2023-10-09 23:41:53 +02:00
draw_cache.h GPv3: Multi-frame editing 2023-11-02 17:10:59 +01:00
draw_cache_extract.hh Cleanup: Move BKE_object.hh to C++ 2023-10-09 23:41:53 +02:00
draw_cache_extract_mesh.cc Cleanup: Move draw_subdivision.h to C++ 2023-11-20 22:07:11 -05:00
draw_cache_extract_mesh_render_data.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_cache_impl.hh License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_cache_impl_curve.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_cache_impl_curves.cc Cleanup: locate break statements inside the case body 2023-09-23 21:17:50 +10:00
draw_cache_impl_gpencil_legacy.cc Cleanup: correct typo "hardeness" to "hardness" in DNA & variable names 2023-09-25 12:05:50 +10:00
draw_cache_impl_grease_pencil.cc Fix: Incorrect default used when retrieving material indices 2023-11-15 16:16:22 +01:00
draw_cache_impl_lattice.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_cache_impl_mesh.cc Cleanup: Move draw_subdivision.h to C++ 2023-11-20 22:07:11 -05:00
draw_cache_impl_particles.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_cache_impl_pointcloud.cc Cleanup: Remove unnecessary includes from C++ data structure headers 2023-09-01 21:37:11 +02:00
draw_cache_impl_subdivision.cc Cleanup: Move draw_subdivision.h to C++ 2023-11-20 22:07:11 -05:00
draw_cache_impl_volume.cc GPU: cleanup texture view usage flags 2023-11-24 15:21:00 +01:00
draw_cache_inline.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_color_management.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_color_management.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_command.cc Fix #114742: Draw: Buffers never shrink 2023-11-20 12:23:12 +01:00
draw_command.hh Fix #114742: Draw: Buffers never shrink 2023-11-20 12:23:12 +01:00
draw_command_shared.hh Metal: Re-enable workbench NEXT shadows 2023-10-19 08:01:17 +02:00
draw_common.cc UI: improve mesh edge highlighting 2023-11-02 22:09:17 +11:00
draw_common.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_common.hh EEVEE-Next: Fix Hair and Curves motion vectors 2023-09-26 19:55:46 +02:00
draw_common_shader_shared.h UI: improve mesh edge highlighting 2023-11-02 22:09:17 +11:00
draw_curves.cc Cleanup: Remove C header from C++ math header 2023-11-11 21:09:54 +01:00
draw_curves_private.hh License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_debug.cc Cleanup: Move BKE_object.hh to C++ 2023-10-09 23:41:53 +02:00
draw_debug.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_debug.hh License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_defines.h Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_fluid.cc GPU: cleanup texture view usage flags 2023-11-24 15:21:00 +01:00
draw_hair.cc Cleanup: use std::min/max instead of MIN2/MAX2 macros 2023-11-07 16:33:19 +11:00
draw_hair_private.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_handle.hh License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_instance_data.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_instance_data.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_manager.cc Fix #114742: Draw: Buffers never shrink 2023-11-20 12:23:12 +01:00
draw_manager.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_manager.hh EEVEE-Next: Add Max Displacement option 2023-11-07 15:28:07 +01:00
draw_manager_c.cc Cleanup: Move draw_subdivision.h to C++ 2023-11-20 22:07:11 -05:00
draw_manager_data.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_manager_exec.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_manager_profiling.cc Cleanup: use std::min/max instead of MIN2/MAX2 macros 2023-11-07 16:33:19 +11:00
draw_manager_profiling.hh License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_manager_shader.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_manager_testing.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_manager_text.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_manager_text.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_manager_texture.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_pass.hh Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_pbvh.cc Cleanup: Access sculpt attributes with C++ attribute API 2023-11-20 13:14:34 -05:00
draw_pbvh.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_pointcloud.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_pointcloud_private.hh License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_resource.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_resource.hh Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
draw_sculpt.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_sculpt.hh Workbench: Sculpt fixes 2023-09-13 22:36:37 +02:00
draw_select_buffer.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_shader.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_shader.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_shader_shared.h EEVEE-Next: Add Max Displacement option 2023-11-07 15:28:07 +01:00
draw_state.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_subdivision.hh Cleanup: Remove unnecessary keywords in C++ header 2023-11-20 22:12:27 -05:00
draw_texture_pool.cc Cleanup: Draw: max_orphan_cycles clarification 2023-10-10 15:49:28 +02:00
draw_texture_pool.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_view.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_view.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_view.hh Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
draw_view_c.cc Draw: Add Region Info Debug Group 2023-11-07 14:53:48 +01:00
draw_view_data.cc GPU: Remove GPU_shader_storage_buffer_objects_support 2023-09-21 12:55:51 +02:00
draw_view_data.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
draw_volume.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00