Home
last modified time | relevance | path

Searched refs:float_to_ubyte (Results 1 – 25 of 27) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/util/
Du_pack_color.h281 *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 …]
Du_debug_image.c278 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()
/external/mesa3d/src/gallium/drivers/i915/
Di915_prim_emit.c105 OUT_BATCH( pack_ub4(float_to_ubyte( attrib[0] ), in emit_hw_vertex()
106 float_to_ubyte( attrib[1] ), in emit_hw_vertex()
107 float_to_ubyte( attrib[2] ), in emit_hw_vertex()
108 float_to_ubyte( attrib[3] )) ); in emit_hw_vertex()
112 OUT_BATCH( pack_ub4(float_to_ubyte( attrib[2] ), in emit_hw_vertex()
113 float_to_ubyte( attrib[1] ), in emit_hw_vertex()
114 float_to_ubyte( attrib[0] ), in emit_hw_vertex()
115 float_to_ubyte( attrib[3] )) ); in emit_hw_vertex()
Di915_state.c286 ubyte r = float_to_ubyte(sampler->border_color.f[0]); in i915_create_sampler_state()
287 ubyte g = float_to_ubyte(sampler->border_color.f[1]); in i915_create_sampler_state()
288 ubyte b = float_to_ubyte(sampler->border_color.f[2]); in i915_create_sampler_state()
289 ubyte a = float_to_ubyte(sampler->border_color.f[3]); in i915_create_sampler_state()
540 ubyte refByte = float_to_ubyte(depth_stencil->alpha.ref_value); in i915_create_depth_stencil_state()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_pack_color.h79 return pack_ub4( float_to_ubyte(a), in pack_ui32_float4()
80 float_to_ubyte(b), in pack_ui32_float4()
81 float_to_ubyte(c), in pack_ui32_float4()
82 float_to_ubyte(d) ); in pack_ui32_float4()
Du_math.h640 float_to_ubyte(float f) in float_to_ubyte() function
/external/mesa3d/src/util/format/
Du_format_yuv.c168 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 …]
Du_format_other.c100 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
101 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
102 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
204 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
205 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
206 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
Du_format_rgtc.c125 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()
Du_format_s3tc.c386 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()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_test_format.c290 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()
Dlp_setup.c1174 uint8_t c = float_to_ubyte(setup->blend_color.current.color[i]); in try_update_scene_state()
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_texture.c147 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()
Dnv30_state_validate.c197 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()
Dnv30_state.c268 SB_DATA (so, float_to_ubyte(cso->alpha.ref_value)); in nv30_zsa_state_create()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_sampler.c254 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()
Dsvga_state_rss.c132 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()
/external/mesa3d/src/gallium/drivers/lima/
Dlima_draw.c160 ((uint32_t)float_to_ubyte(color->f[3]) << 24) | in lima_clear()
161 ((uint32_t)float_to_ubyte(color->f[2]) << 16) | in lima_clear()
162 ((uint32_t)float_to_ubyte(color->f[1]) << 8) | in lima_clear()
163 float_to_ubyte(color->f[0]); in lima_clear()
615 render->blend_color_bg = float_to_ubyte(ctx->blend_color.color[2]) | in lima_pack_render_state()
616 (float_to_ubyte(ctx->blend_color.color[1]) << 16); in lima_pack_render_state()
617 render->blend_color_ra = float_to_ubyte(ctx->blend_color.color[0]) | in lima_pack_render_state()
618 (float_to_ubyte(ctx->blend_color.color[3]) << 16); in lima_pack_render_state()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_uniforms.c162 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()
Dvc4_state.c57 vc4->blend_color.ub[i] = float_to_ubyte(blend_color->color[i]); in vc4_set_blend_color()
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/
Dfd2_emit.c385 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[0])); in fd2_emit_state()
386 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[1])); in fd2_emit_state()
387 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[2])); in fd2_emit_state()
388 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[3])); in fd2_emit_state()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_blitter.c725 OUT_RING(ring, float_to_ubyte(color->f[0])); in emit_clear_color()
726 OUT_RING(ring, float_to_ubyte(color->f[1])); in emit_clear_color()
727 OUT_RING(ring, float_to_ubyte(color->f[2])); in emit_clear_color()
728 OUT_RING(ring, float_to_ubyte(color->f[3])); in emit_clear_color()
/external/mesa3d/src/gallium/drivers/panfrost/
Dpan_job.c1254 ((uint32_t) float_to_ubyte(clear_alpha) << 24) | in pan_pack_color()
1255 ((uint32_t) float_to_ubyte(color->f[2]) << 16) | in pan_pack_color()
1256 ((uint32_t) float_to_ubyte(color->f[1]) << 8) | in pan_pack_color()
1257 ((uint32_t) float_to_ubyte(color->f[0]) << 0)); in pan_pack_color()
/external/mesa3d/src/util/
Du_math.h392 float_to_ubyte(float f) in float_to_ubyte() function
/external/mesa3d/src/amd/vulkan/
Dradv_meta_clear.c2286 r = float_to_ubyte(clear_value->color.float32[0]) >> 4; in radv_cmd_clear_image()
2287 g = float_to_ubyte(clear_value->color.float32[1]) >> 4; in radv_cmd_clear_image()

12