Searched refs:max_rgb (Results 1 – 4 of 4) sorted by relevance
/third_party/astc-encoder/Utils/ |
D | astc_rgbm_codec.cpp | 101 float max_rgb = astc::max(r_in, g_in, b_in); in main() local 104 float m_scale = astc::min(1.0f, ceil(max_rgb * 255.0f) / 255.0f); in main()
|
/third_party/mesa3d/src/amd/llvm/ |
D | ac_llvm_build.c | 2396 LLVMValueRef max_rgb = LLVMConstInt(ctx->i32, bits == 8 ? 127 : bits == 10 ? 511 : 32767, 0); in ac_build_cvt_pk_i16() local 2398 LLVMValueRef max_alpha = bits != 10 ? max_rgb : ctx->i32_1; in ac_build_cvt_pk_i16() 2405 args[i] = ac_build_imin(ctx, args[i], alpha ? max_alpha : max_rgb); in ac_build_cvt_pk_i16() 2421 LLVMValueRef max_rgb = LLVMConstInt(ctx->i32, bits == 8 ? 255 : bits == 10 ? 1023 : 65535, 0); in ac_build_cvt_pk_u16() local 2422 LLVMValueRef max_alpha = bits != 10 ? max_rgb : LLVMConstInt(ctx->i32, 3, 0); in ac_build_cvt_pk_u16() 2428 args[i] = ac_build_umin(ctx, args[i], alpha ? max_alpha : max_rgb); in ac_build_cvt_pk_u16()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_pipeline.c | 4338 unsigned max_rgb = is_int8 ? 255 : is_int10 ? 1023 : 0; in radv_lower_fs_output() local 4342 … : nir_imm_int(&b, max_rgb)); in radv_lower_fs_output() 4350 unsigned max_rgb = is_int8 ? 127 : is_int10 ? 511 : 0; in radv_lower_fs_output() local 4355 … : nir_imm_int(&b, max_rgb)); in radv_lower_fs_output()
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 11269 uint32_t max_rgb = out->is_int8 ? 255 : out->is_int10 ? 1023 : 0; in export_fs_mrt_color() local 11272 uint32_t max = i == 3 && out->is_int10 ? 3 : max_rgb; in export_fs_mrt_color() 11288 uint32_t max_rgb = out->is_int8 ? 127 : out->is_int10 ? 511 : 0; in export_fs_mrt_color() local 11292 uint32_t max = i == 3 && out->is_int10 ? 1 : max_rgb; in export_fs_mrt_color()
|