uitl: Add R1_UNORM to the list of noaccess (no pack/unpack) formats.
The functions were just stubs, if you called them you would be terribly disappointed. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6305>
This commit is contained in:
@@ -237,50 +237,6 @@ util_format_r11g11b10_float_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stri
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_unpack_rgba_float(UNUSED void *dst_row, UNUSED unsigned dst_stride,
|
|
||||||
UNUSED const uint8_t *src_row, UNUSED unsigned src_stride,
|
|
||||||
UNUSED unsigned width, UNUSED unsigned height)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_pack_rgba_float(UNUSED uint8_t *dst_row, UNUSED unsigned dst_stride,
|
|
||||||
UNUSED const float *src_row, UNUSED unsigned src_stride,
|
|
||||||
UNUSED unsigned width, UNUSED unsigned height)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_fetch_rgba_float(UNUSED float *dst, UNUSED const uint8_t *src,
|
|
||||||
UNUSED unsigned i, UNUSED unsigned j)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_unpack_rgba_8unorm(UNUSED uint8_t *dst_row, UNUSED unsigned dst_stride,
|
|
||||||
UNUSED const uint8_t *src_row, UNUSED unsigned src_stride,
|
|
||||||
UNUSED unsigned width, UNUSED unsigned height)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_pack_rgba_8unorm(UNUSED uint8_t *dst_row, UNUSED unsigned dst_stride,
|
|
||||||
UNUSED const uint8_t *src_row, UNUSED unsigned src_stride,
|
|
||||||
UNUSED unsigned width, UNUSED unsigned height)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PIPE_FORMAT_R8G8Bx_SNORM
|
* PIPE_FORMAT_R8G8Bx_SNORM
|
||||||
*
|
*
|
||||||
|
@@ -83,30 +83,6 @@ util_format_r11g11b10_float_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stri
|
|||||||
unsigned width, unsigned height);
|
unsigned width, unsigned height);
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_unpack_rgba_float(void *dst_row, unsigned dst_stride,
|
|
||||||
const uint8_t *src_row, unsigned src_stride,
|
|
||||||
unsigned width, unsigned height);
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_pack_rgba_float(uint8_t *dst_row, unsigned dst_stride,
|
|
||||||
const float *src_row, unsigned src_stride,
|
|
||||||
unsigned width, unsigned height);
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_fetch_rgba_float(float *dst, const uint8_t *src,
|
|
||||||
unsigned i, unsigned j);
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_unpack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
|
|
||||||
const uint8_t *src_row, unsigned src_stride,
|
|
||||||
unsigned width, unsigned height);
|
|
||||||
|
|
||||||
void
|
|
||||||
util_format_r1_unorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
|
|
||||||
const uint8_t *src_row, unsigned src_stride,
|
|
||||||
unsigned width, unsigned height);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
util_format_r8g8bx_snorm_unpack_rgba_float(void *dst_row, unsigned dst_stride,
|
util_format_r8g8bx_snorm_unpack_rgba_float(void *dst_row, unsigned dst_stride,
|
||||||
const uint8_t *src_row, unsigned src_stride,
|
const uint8_t *src_row, unsigned src_stride,
|
||||||
|
@@ -82,6 +82,7 @@ def has_access(format):
|
|||||||
# We don't generate code for YUV formats, and many of the new ones lack
|
# We don't generate code for YUV formats, and many of the new ones lack
|
||||||
# pack/unpack functions for softpipe/llvmpipe.
|
# pack/unpack functions for softpipe/llvmpipe.
|
||||||
noaccess_formats = [
|
noaccess_formats = [
|
||||||
|
'r1_unorm',
|
||||||
'yv12',
|
'yv12',
|
||||||
'yv16',
|
'yv16',
|
||||||
'iyuv',
|
'iyuv',
|
||||||
|
Reference in New Issue
Block a user