Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/auxiliary/util/
Du_pack_color.h282 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
283 *g = float_to_ubyte(p[1]); in util_unpack_color_ub()
284 *b = float_to_ubyte(p[2]); in util_unpack_color_ub()
285 *a = float_to_ubyte(p[3]); in util_unpack_color_ub()
291 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
292 *g = float_to_ubyte(p[1]); in util_unpack_color_ub()
293 *b = float_to_ubyte(p[2]); in util_unpack_color_ub()
301 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
302 *g = float_to_ubyte(p[1]); in util_unpack_color_ub()
310 *r = float_to_ubyte(p[0]); in util_unpack_color_ub()
[all …]
Du_format_yuv.c168 value = float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float()
169 value |= float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
170 value |= float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
171 value |= float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
184 value = float_to_ubyte(r); in util_format_r8g8_b8g8_unorm_pack_rgba_float()
185 value |= float_to_ubyte(g0) << 8; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
186 value |= float_to_ubyte(b) << 16; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
187 value |= float_to_ubyte(g1) << 24; in util_format_r8g8_b8g8_unorm_pack_rgba_float()
388 value = float_to_ubyte(g0); in util_format_g8r8_g8b8_unorm_pack_rgba_float()
389 value |= float_to_ubyte(r) << 8; in util_format_g8r8_g8b8_unorm_pack_rgba_float()
[all …]
Du_format_other.c99 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
100 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
101 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r9g9b9e5_float_unpack_rgba_8unorm()
202 dst[0] = float_to_ubyte(p[0]); /* r */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
203 dst[1] = float_to_ubyte(p[1]); /* g */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
204 dst[2] = float_to_ubyte(p[2]); /* b */ in util_format_r11g11b10_float_unpack_rgba_8unorm()
Du_debug_image.c277 pixel.rgbRed = float_to_ubyte(ptr[x*4 + 0]); in debug_dump_float_rgba_bmp()
278 pixel.rgbGreen = float_to_ubyte(ptr[x*4 + 1]); in debug_dump_float_rgba_bmp()
279 pixel.rgbBlue = float_to_ubyte(ptr[x*4 + 2]); in debug_dump_float_rgba_bmp()
280 pixel.rgbAlpha = float_to_ubyte(ptr[x*4 + 3]); in debug_dump_float_rgba_bmp()
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()
300 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()
301 … 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.c383 tmp[j][i][k] = float_to_ubyte(src_tmp); in util_format_dxtn_pack_rgba_float()
388 tmp[j][i][3] = float_to_ubyte(src_tmp); in util_format_dxtn_pack_rgba_float()
Du_math.h384 float_to_ubyte(float f) in float_to_ubyte() function
/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/gallium/drivers/llvmpipe/
Dlp_test_format.c287 int error = float_to_ubyte(test->unpacked[i][j][k]) - unpacked[k]; in test_format_unorm8()
312 float_to_ubyte(test->unpacked[i][j][0]), in test_format_unorm8()
313 float_to_ubyte(test->unpacked[i][j][1]), in test_format_unorm8()
314 float_to_ubyte(test->unpacked[i][j][2]), in test_format_unorm8()
315 float_to_ubyte(test->unpacked[i][j][3])); in test_format_unorm8()
Dlp_setup.c1064 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.c261 uint32 r = float_to_ubyte(sampler->border_color.f[0]); in svga_create_sampler_state()
262 uint32 g = float_to_ubyte(sampler->border_color.f[1]); in svga_create_sampler_state()
263 uint32 b = float_to_ubyte(sampler->border_color.f[2]); in svga_create_sampler_state()
264 uint32 a = float_to_ubyte(sampler->border_color.f[3]); in svga_create_sampler_state()
Dsvga_state_rss.c115 uint32 r = float_to_ubyte(svga->curr.blend_color.color[0]); in emit_rss_vgpu9()
116 uint32 g = float_to_ubyte(svga->curr.blend_color.color[1]); in emit_rss_vgpu9()
117 uint32 b = float_to_ubyte(svga->curr.blend_color.color[2]); in emit_rss_vgpu9()
118 uint32 a = float_to_ubyte(svga->curr.blend_color.color[3]); in emit_rss_vgpu9()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_uniforms.c161 uc.ui[0] = float_to_ubyte(storage_color[0]) << 24; in write_texture_border_color()
164 uc.ui[0] = ((float_to_ubyte(storage_color[1]) << 24) | in write_texture_border_color()
165 (float_to_ubyte(storage_color[0]) << 0)); in write_texture_border_color()
Dvc4_state.c56 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.c321 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[0])); in fd2_emit_state()
322 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[1])); in fd2_emit_state()
323 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[2])); in fd2_emit_state()
324 OUT_RING(ring, float_to_ubyte(ctx->blend_color.color[3])); in fd2_emit_state()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_quad_blend.c164 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()
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_uniforms.c94 uc.ui[0] = float_to_ubyte(storage_color[0]) << 24;
97 uc.ui[0] = ((float_to_ubyte(storage_color[1]) << 24) |
98 (float_to_ubyte(storage_color[0]) << 0));
/external/mesa3d/src/amd/vulkan/
Dradv_formats.c831 r = float_to_ubyte(value->float32[0]); in radv_format_pack_clear_color()
832 g = float_to_ubyte(value->float32[1]); in radv_format_pack_clear_color()
833 b = float_to_ubyte(value->float32[2]); in radv_format_pack_clear_color()
834 a = float_to_ubyte(value->float32[3]); in radv_format_pack_clear_color()
839 a = float_to_ubyte(value->float32[3]); in radv_format_pack_clear_color()
Dradv_meta_clear.c1331 r = float_to_ubyte(clear_value->color.float32[0]) >> 4; in radv_cmd_clear_image()
1332 g = float_to_ubyte(clear_value->color.float32[1]) >> 4; in radv_cmd_clear_image()

12