/third_party/mesa3d/src/gallium/auxiliary/util/ |
D | u_pack_color.h | 281 *r = float_to_ubyte(p[0]); in util_unpack_color_ub() 282 *g = float_to_ubyte(p[1]); in util_unpack_color_ub() 283 *b = float_to_ubyte(p[2]); in util_unpack_color_ub() 284 *a = float_to_ubyte(p[3]); in util_unpack_color_ub() 290 *r = float_to_ubyte(p[0]); in util_unpack_color_ub() 291 *g = float_to_ubyte(p[1]); in util_unpack_color_ub() 292 *b = float_to_ubyte(p[2]); in util_unpack_color_ub() 300 *r = float_to_ubyte(p[0]); in util_unpack_color_ub() 301 *g = float_to_ubyte(p[1]); in util_unpack_color_ub() 309 *r = float_to_ubyte(p[0]); in util_unpack_color_ub() [all …]
|
D | u_debug_image.c | 278 pixel.rgbRed = float_to_ubyte(ptr[x*4 + 0]); in debug_dump_float_rgba_bmp() 279 pixel.rgbGreen = float_to_ubyte(ptr[x*4 + 1]); in debug_dump_float_rgba_bmp() 280 pixel.rgbBlue = float_to_ubyte(ptr[x*4 + 2]); in debug_dump_float_rgba_bmp() 281 pixel.rgbAlpha = float_to_ubyte(ptr[x*4 + 3]); in debug_dump_float_rgba_bmp()
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_prim_emit.c | 100 pack_ub4(float_to_ubyte(attrib[0]), float_to_ubyte(attrib[1]), in emit_hw_vertex() 101 float_to_ubyte(attrib[2]), float_to_ubyte(attrib[3]))); in emit_hw_vertex() 106 pack_ub4(float_to_ubyte(attrib[2]), float_to_ubyte(attrib[1]), in emit_hw_vertex() 107 float_to_ubyte(attrib[0]), float_to_ubyte(attrib[3]))); in emit_hw_vertex()
|
D | i915_state.c | 338 ubyte r = float_to_ubyte(sampler->border_color.f[0]); in i915_create_sampler_state() 339 ubyte g = float_to_ubyte(sampler->border_color.f[1]); in i915_create_sampler_state() 340 ubyte b = float_to_ubyte(sampler->border_color.f[2]); in i915_create_sampler_state() 341 ubyte a = float_to_ubyte(sampler->border_color.f[3]); in i915_create_sampler_state() 491 ubyte refByte = float_to_ubyte(depth_stencil->alpha_ref_value); in i915_create_depth_stencil_state()
|
/third_party/mesa3d/src/util/format/ |
D | u_format_yuv.c | 168 value = (uint32_t)float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float() 169 value |= (uint32_t)float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float() 170 value |= (uint32_t)float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float() 171 value |= (uint32_t)float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float() 184 value = (uint32_t)float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float() 185 value |= (uint32_t)float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float() 186 value |= (uint32_t)float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float() 187 value |= (uint32_t)float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float() 390 value = (uint32_t)float_to_ubyte(g0); in util_format_g8r8_g8b8_unorm_pack_rgba_float() 391 value |= (uint32_t)float_to_ubyte(r) << 8; in util_format_g8r8_g8b8_unorm_pack_rgba_float() [all …]
|
D | u_format_other.c | 95 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm() 96 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm() 97 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm() 191 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r11g11b10_float_unpack_rgba_8unorm() 192 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r11g11b10_float_unpack_rgba_8unorm() 193 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
|
D | u_format_rgtc.c | 125 tmp[j][i] = float_to_ubyte(src_row[(y + j)*src_stride/sizeof(*src_row) + (x + i)*4]); in util_format_rgtc1_unorm_pack_rgba_float() 302 tmp_r[j][i] = float_to_ubyte(src_row[(y + j)*src_stride/sizeof(*src_row) + (x + i)*4]); in util_format_rxtc2_unorm_pack_rgba_float() 303 … tmp_g[j][i] = float_to_ubyte(src_row[(y + j)*src_stride/sizeof(*src_row) + (x + i)*4 + chan2off]); in util_format_rxtc2_unorm_pack_rgba_float()
|
D | u_format_s3tc.c | 386 tmp[j][i][k] = float_to_ubyte(src_tmp); in util_format_dxtn_pack_rgba_float() 391 tmp[j][i][3] = float_to_ubyte(src_tmp); in util_format_dxtn_pack_rgba_float()
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_format.c | 290 int error = float_to_ubyte(test->unpacked[i][j][k]) - unpacked[k]; in test_format_unorm8() 315 float_to_ubyte(test->unpacked[i][j][0]), in test_format_unorm8() 316 float_to_ubyte(test->unpacked[i][j][1]), in test_format_unorm8() 317 float_to_ubyte(test->unpacked[i][j][2]), in test_format_unorm8() 318 float_to_ubyte(test->unpacked[i][j][3])); in test_format_unorm8()
|
D | lp_linear.c | 136 jit.alpha_ref_value = float_to_ubyte(state->jit_context.alpha_ref_value); in lp_fs_linear_run()
|
D | lp_setup.c | 1246 uint8_t c = float_to_ubyte(setup->blend_color.current.color[i]); in try_update_scene_state()
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_texture.c | 147 so->bcol = (float_to_ubyte(cso->border_color.f[3]) << 24) | in nv30_sampler_state_create() 148 (float_to_ubyte(cso->border_color.f[0]) << 16) | in nv30_sampler_state_create() 149 (float_to_ubyte(cso->border_color.f[1]) << 8) | in nv30_sampler_state_create() 150 (float_to_ubyte(cso->border_color.f[2]) << 0); in nv30_sampler_state_create()
|
D | nv30_state_validate.c | 197 PUSH_DATA (push, (float_to_ubyte(rgba[3]) << 24) | in nv30_validate_blend_colour() 198 (float_to_ubyte(rgba[0]) << 16) | in nv30_validate_blend_colour() 199 (float_to_ubyte(rgba[1]) << 8) | in nv30_validate_blend_colour() 200 (float_to_ubyte(rgba[2]) << 0)); in nv30_validate_blend_colour()
|
D | nv30_state.c | 268 SB_DATA (so, float_to_ubyte(cso->alpha_ref_value)); in nv30_zsa_state_create()
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
D | lima_draw.c | 161 ((uint32_t)float_to_ubyte(color->f[3]) << 24) | in lima_clear() 162 ((uint32_t)float_to_ubyte(color->f[2]) << 16) | in lima_clear() 163 ((uint32_t)float_to_ubyte(color->f[1]) << 8) | in lima_clear() 164 float_to_ubyte(color->f[0]); in lima_clear() 622 render->blend_color_bg = float_to_ubyte(ctx->blend_color.color[2]) | in lima_pack_render_state() 623 (float_to_ubyte(ctx->blend_color.color[1]) << 16); in lima_pack_render_state() 624 render->blend_color_ra = float_to_ubyte(ctx->blend_color.color[0]) | in lima_pack_render_state() 625 (float_to_ubyte(ctx->blend_color.color[3]) << 16); in lima_pack_render_state() 709 render->stencil_test |= float_to_ubyte(ctx->zsa->base.alpha_ref_value) << 16; in lima_pack_render_state()
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
D | svga_pipe_sampler.c | 254 uint32 r = float_to_ubyte(sampler->border_color.f[0]); in svga_create_sampler_state() 255 uint32 g = float_to_ubyte(sampler->border_color.f[1]); in svga_create_sampler_state() 256 uint32 b = float_to_ubyte(sampler->border_color.f[2]); in svga_create_sampler_state() 257 uint32 a = float_to_ubyte(sampler->border_color.f[3]); in svga_create_sampler_state()
|
D | svga_state_rss.c | 132 uint32 r = float_to_ubyte(svga->curr.blend_color.color[0]); in emit_rss_vgpu9() 133 uint32 g = float_to_ubyte(svga->curr.blend_color.color[1]); in emit_rss_vgpu9() 134 uint32 b = float_to_ubyte(svga->curr.blend_color.color[2]); in emit_rss_vgpu9() 135 uint32 a = float_to_ubyte(svga->curr.blend_color.color[3]); in emit_rss_vgpu9()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_uniforms.c | 162 uc.ui[0] = float_to_ubyte(storage_color[0]) << 24; in write_texture_border_color() 165 uc.ui[0] = ((float_to_ubyte(storage_color[1]) << 24) | in write_texture_border_color() 166 (float_to_ubyte(storage_color[0]) << 0)); in write_texture_border_color()
|
D | vc4_state.c | 57 vc4->blend_color.ub[i] = float_to_ubyte(blend_color->color[i]); in vc4_set_blend_color()
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_quad_blend.c | 164 dst[j][0] = float_to_ubyte(dest[j][0]); /* P0 */ in logicop_quad() 165 dst[j][1] = float_to_ubyte(dest[j][1]); /* P1 */ in logicop_quad() 166 dst[j][2] = float_to_ubyte(dest[j][2]); /* P2 */ in logicop_quad() 167 dst[j][3] = float_to_ubyte(dest[j][3]); /* P3 */ in logicop_quad() 169 src[j][0] = float_to_ubyte(quadColor[j][0]); /* P0 */ in logicop_quad() 170 src[j][1] = float_to_ubyte(quadColor[j][1]); /* P1 */ in logicop_quad() 171 src[j][2] = float_to_ubyte(quadColor[j][2]); /* P2 */ in logicop_quad() 172 src[j][3] = float_to_ubyte(quadColor[j][3]); /* P3 */ in logicop_quad()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_emit.c | 391 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[0])); in fd2_emit_state() 392 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[1])); in fd2_emit_state() 393 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[2])); in fd2_emit_state() 394 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[3])); in fd2_emit_state()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_blitter.c | 732 OUT_RING(ring, float_to_ubyte(color->f[0])); in emit_clear_color() 733 OUT_RING(ring, float_to_ubyte(color->f[1])); in emit_clear_color() 734 OUT_RING(ring, float_to_ubyte(color->f[2])); in emit_clear_color() 735 OUT_RING(ring, float_to_ubyte(color->f[3])); in emit_clear_color()
|
/third_party/mesa3d/src/util/ |
D | u_math.h | 328 float_to_ubyte(float f) in float_to_ubyte() function
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_meta_clear.c | 2371 r = float_to_ubyte(clear_value->color.float32[0]) >> 4; in radv_cmd_clear_image() 2372 g = float_to_ubyte(clear_value->color.float32[1]) >> 4; in radv_cmd_clear_image()
|
/third_party/mesa3d/src/gallium/drivers/r300/ |
D | r300_state.c | 755 dsa->alpha_function |= float_to_ubyte(state->alpha_ref_value); in r300_create_dsa_state()
|