tornavis/source/blender/imbuf/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
..
cineon Cleanup: use C++ comments for disabled code 2023-09-25 17:06:04 +10:00
oiio Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
openexr Cleanup: Make format 2023-11-07 08:04:17 +01:00
IMB_allocimbuf.h Cleanup: correct file names in comments after C -> C++ renaming 2023-07-31 13:02:30 +10:00
IMB_anim.h FFMPEG: Cleanup: Remove storage of last FFMPEG frame read as `ImBuf` in anim data. 2023-11-03 11:18:21 +01:00
IMB_colormanagement_intern.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
IMB_filetype.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
IMB_filter.h Cleanup: correct file names in comments after C -> C++ renaming 2023-07-31 13:02:30 +10:00
IMB_indexer.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
allocimbuf.cc ImBuf: calculate the JPEG DPI with double precision 2023-09-20 12:12:49 +10:00
anim_movie.cc Cleanup: Make format 2023-11-03 12:00:38 +01:00
colormanagement.cc Cleanup: Move several blenkernel headers to C++ 2023-11-16 11:41:55 +01:00
colormanagement_inline.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
divers.cc Cleanup: reduce amount of math-related includes 2023-08-10 14:51:40 +03:00
filetype.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
filter.cc Cleanup: use C++ system headers 2023-07-22 11:27:25 +10:00
format_bmp.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
format_dds.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
format_dpx.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
format_hdr.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
format_png.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
format_psd.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
format_svg.cc Cleanup: use std::min/max instead of MIN2/MAX2 macros 2023-11-07 16:33:19 +11:00
format_targa.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
format_tiff.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
imageprocess.cc Cleanup: reduce amount of math-related includes 2023-08-10 14:51:40 +03:00
imbuf.h ImBuf: calculate the JPEG DPI with double precision 2023-09-20 12:12:49 +10:00
indexer.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
iris.cc Cleanup: simplify struct & enum declarations for C++ 2023-07-24 10:13:31 +10:00
jp2.cc Cleanup: various non-functional C++ changes 2023-08-19 23:52:47 +10:00
jpeg.cc Cleanup: use std::min/max instead of MIN2/MAX2 macros 2023-11-07 16:33:19 +11:00
metadata.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
module.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
moviecache.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
readimage.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
rectop.cc Cleanup: various non-functional C++ changes 2023-08-19 23:52:47 +10:00
rotate.cc Cleanup: remove redundant struct qualifiers 2023-06-03 08:54:37 +10:00
scaling.cc Cleanup: use boolean literals in source/ 2023-07-22 11:43:01 +10:00
stereoimbuf.cc Cleanup: use std::min/max instead of MIN2/MAX2 macros 2023-11-07 16:33:19 +11:00
thumbs.cc Revert changes from main commits that were merged into blender-v4.0-release 2023-10-30 21:40:35 +01:00
thumbs_blend.cc Cleanup: Move BKE preview image code to separate file 2023-09-04 18:02:16 +02:00
thumbs_font.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
transform.cc Cleanup: reduce amount of math-related includes 2023-08-10 14:51:40 +03:00
util.cc Fix build error on Windows after BLI_read changes 2023-10-10 15:36:15 +02:00
util_gpu.cc GPU: cleanup texture view usage flags 2023-11-24 15:21:00 +01:00
webp.cc Cleanup: use std::min/max instead of MIN2/MAX2 macros 2023-11-07 16:33:19 +11:00
writeimage.cc Cleanup: use C++ system headers 2023-07-22 11:27:25 +10:00