aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_formats.c
Commit message (Collapse)AuthorAgeFilesLines
* turnip: Fix GCC compiles.Bas Nieuwenhuizen2019-03-161-6/+3
| | | | | | | | | | Apparently GCC does not consider static const variables to be integer constants, and hence the array size and the static assert result in compile failures. Fixes: 4b9f967cd1a "turnip: add a more complete format table" Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Use Vulkan 1.1 names instead of KHRChad Versace2019-03-111-40/+40
| | | | | | | That is, drop KHR from all tokens that were promoted to Vulkan 1.1. The consistency makes ctags more useful (it now jumps directly to the real definitions in vulkan_core.h instead of the typedefs); and it makes the code slightly less verbose.
* turnip: Add tu6_rb_fmt_to_ifmt.Bas Nieuwenhuizen2019-03-111-0/+69
|
* turnip: respect color attachment formatsChia-I Wu2019-03-111-10/+1
| | | | | Make tu6_get_native_format available to tu_cmd_buffer and start using of it.
* turnip: fix VkClearValue packingChia-I Wu2019-03-111-0/+210
| | | | | | Add tu_pack_clear_value to correctly pack VkClearValue according to VkFormat. It ignores the component order defined by VkFormat, and always packs to WZYX order.
* turnip: Fix error behavior for VkPhysicalDeviceExternalImageFormatInfoChad Versace2019-03-111-26/+24
| | | | | | | | If the handle type is unsupported, then the spec requires us to return VK_ERROR_FORMAT_NOT_SUPPORTED. Reviewed-by: Chia-I Wu <[email protected]> Closes: https://gitlab.freedesktop.org/bnieuwenhuizen/mesa/merge_requests/17
* turnip: add a more complete format tableChia-I Wu2019-03-111-47/+301
| | | | | | | | | | | | A format table is an array of tu_native_format. Table lookup is done through array indexing. This commit defines a single format table for core VkFormat. It is derived from the table in the gallium driver. There might be errors introduced in the process of the conversion. When an extension that defines new VkFormat is supported, we need to add a new table for the extension.
* turnip: Implement some format properties for RGBA8.Bas Nieuwenhuizen2019-03-111-1/+73
| | | | | Just to get some tests to not skip. This is neither complete nor completely correct.
* turnip: add .clang-formatChia-I Wu2019-03-111-119/+116
| | | | Add and apply .clang-format.
* turnip: Fix indentation in function signaturesChad Versace2019-03-111-35/+35
| | | | | Due to s/anv/tu/, in many function signatures the indentation of parameters was off-by-one.
* turnip: Add driver skeleton (v2)Bas Nieuwenhuizen2019-03-111-0/+410
meson files have been updated, autotools and android still need updating. Only build tested. v2 (chadv): - Rebase onto master. - Fix build breakage in Python scripts. - Drop the WSI code. The internal WSI apis have changed recently, and will likely change again before the driver goes upstream. To avoid unnecessary rebase work, let's drop the WSI code and re-add it when we're ready to really use WSI. (olv, after rebase) do not enable freedreno by default on ARM