diff options
author | Eric Anholt <[email protected]> | 2017-12-28 13:01:37 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-01-03 14:25:23 -0800 |
commit | 39811a2894743bf7e2f9818a0a1d14b6566116ee (patch) | |
tree | 2aba5c8cd2d972ba925a95e92190bc0d38b23206 /src/gallium/drivers/vc5/vc5_formats.c | |
parent | d3e8a4b96c80955e832981534b1f4c3856b6fdb4 (diff) |
broadcom/vc5: Introduce enums for internal depth/type, with V3D prefixes.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_formats.c')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_formats.c | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/gallium/drivers/vc5/vc5_formats.c b/src/gallium/drivers/vc5/vc5_formats.c index b16ac1db3f8..432db913b42 100644 --- a/src/gallium/drivers/vc5/vc5_formats.c +++ b/src/gallium/drivers/vc5/vc5_formats.c @@ -309,22 +309,22 @@ vc5_get_internal_type_bpp_for_output_format(uint32_t format, case V3D_OUTPUT_IMAGE_FORMAT_ABGR4444: case V3D_OUTPUT_IMAGE_FORMAT_BGR565: case V3D_OUTPUT_IMAGE_FORMAT_ABGR1555: - *type = INTERNAL_TYPE_8; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_8; + *bpp = V3D_INTERNAL_BPP_32; break; case V3D_OUTPUT_IMAGE_FORMAT_RGBA8I: case V3D_OUTPUT_IMAGE_FORMAT_RG8I: case V3D_OUTPUT_IMAGE_FORMAT_R8I: - *type = INTERNAL_TYPE_8I; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_8I; + *bpp = V3D_INTERNAL_BPP_32; break; case V3D_OUTPUT_IMAGE_FORMAT_RGBA8UI: case V3D_OUTPUT_IMAGE_FORMAT_RG8UI: case V3D_OUTPUT_IMAGE_FORMAT_R8UI: - *type = INTERNAL_TYPE_8UI; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_8UI; + *bpp = V3D_INTERNAL_BPP_32; break; case V3D_OUTPUT_IMAGE_FORMAT_SRGB8_ALPHA8: @@ -337,76 +337,76 @@ vc5_get_internal_type_bpp_for_output_format(uint32_t format, * and the conversion to sRGB happens at tilebuffer * load/store. */ - *type = INTERNAL_TYPE_16F; - *bpp = INTERNAL_BPP_64; + *type = V3D_INTERNAL_TYPE_16F; + *bpp = V3D_INTERNAL_BPP_64; break; case V3D_OUTPUT_IMAGE_FORMAT_RG16F: case V3D_OUTPUT_IMAGE_FORMAT_R16F: - *type = INTERNAL_TYPE_16F; + *type = V3D_INTERNAL_TYPE_16F; /* Use 64bpp to make sure the TLB doesn't throw away the alpha * channel before alpha test happens. */ - *bpp = INTERNAL_BPP_64; + *bpp = V3D_INTERNAL_BPP_64; break; case V3D_OUTPUT_IMAGE_FORMAT_RGBA16I: - *type = INTERNAL_TYPE_16I; - *bpp = INTERNAL_BPP_64; + *type = V3D_INTERNAL_TYPE_16I; + *bpp = V3D_INTERNAL_BPP_64; break; case V3D_OUTPUT_IMAGE_FORMAT_RG16I: case V3D_OUTPUT_IMAGE_FORMAT_R16I: - *type = INTERNAL_TYPE_16I; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_16I; + *bpp = V3D_INTERNAL_BPP_32; break; case V3D_OUTPUT_IMAGE_FORMAT_RGBA16UI: - *type = INTERNAL_TYPE_16UI; - *bpp = INTERNAL_BPP_64; + *type = V3D_INTERNAL_TYPE_16UI; + *bpp = V3D_INTERNAL_BPP_64; break; case V3D_OUTPUT_IMAGE_FORMAT_RG16UI: case V3D_OUTPUT_IMAGE_FORMAT_R16UI: - *type = INTERNAL_TYPE_16UI; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_16UI; + *bpp = V3D_INTERNAL_BPP_32; break; case V3D_OUTPUT_IMAGE_FORMAT_RGBA32I: - *type = INTERNAL_TYPE_32I; - *bpp = INTERNAL_BPP_128; + *type = V3D_INTERNAL_TYPE_32I; + *bpp = V3D_INTERNAL_BPP_128; break; case V3D_OUTPUT_IMAGE_FORMAT_RG32I: - *type = INTERNAL_TYPE_32I; - *bpp = INTERNAL_BPP_64; + *type = V3D_INTERNAL_TYPE_32I; + *bpp = V3D_INTERNAL_BPP_64; break; case V3D_OUTPUT_IMAGE_FORMAT_R32I: - *type = INTERNAL_TYPE_32I; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_32I; + *bpp = V3D_INTERNAL_BPP_32; break; case V3D_OUTPUT_IMAGE_FORMAT_RGBA32UI: - *type = INTERNAL_TYPE_32UI; - *bpp = INTERNAL_BPP_128; + *type = V3D_INTERNAL_TYPE_32UI; + *bpp = V3D_INTERNAL_BPP_128; break; case V3D_OUTPUT_IMAGE_FORMAT_RG32UI: - *type = INTERNAL_TYPE_32UI; - *bpp = INTERNAL_BPP_64; + *type = V3D_INTERNAL_TYPE_32UI; + *bpp = V3D_INTERNAL_BPP_64; break; case V3D_OUTPUT_IMAGE_FORMAT_R32UI: - *type = INTERNAL_TYPE_32UI; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_32UI; + *bpp = V3D_INTERNAL_BPP_32; break; case V3D_OUTPUT_IMAGE_FORMAT_RGBA32F: - *type = INTERNAL_TYPE_32F; - *bpp = INTERNAL_BPP_128; + *type = V3D_INTERNAL_TYPE_32F; + *bpp = V3D_INTERNAL_BPP_128; break; case V3D_OUTPUT_IMAGE_FORMAT_RG32F: - *type = INTERNAL_TYPE_32F; - *bpp = INTERNAL_BPP_64; + *type = V3D_INTERNAL_TYPE_32F; + *bpp = V3D_INTERNAL_BPP_64; break; case V3D_OUTPUT_IMAGE_FORMAT_R32F: - *type = INTERNAL_TYPE_32F; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_32F; + *bpp = V3D_INTERNAL_BPP_32; break; default: @@ -414,8 +414,8 @@ vc5_get_internal_type_bpp_for_output_format(uint32_t format, * creation time, even if an RB with this format isn't * supported. */ - *type = INTERNAL_TYPE_8; - *bpp = INTERNAL_BPP_32; + *type = V3D_INTERNAL_TYPE_8; + *bpp = V3D_INTERNAL_BPP_32; break; } } |