16-bit types can be used with MUBUF on GFX6-GFX7.
Fixes: c3e0ba52a0a ("ac/nir: support 16-bit data in buffer_load_format opcodes")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5325>
char name[256], type_name[8];
/* D16 is only supported on gfx8+ */
- assert((channel_type != ctx->f16 && channel_type != ctx->i16) ||
+ assert(!use_format ||
+ (channel_type != ctx->f16 && channel_type != ctx->i16) ||
ctx->chip_class >= GFX8);
LLVMTypeRef type = func > 1 ? LLVMVectorType(channel_type, func) : channel_type;