HomeSort by: relevance | last modified time | path
    Searched refs:alpha (Results 1 - 25 of 1152) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/llvmpipe/
lp_bld_alpha.c 29 * Alpha testing to LLVM IR translation.
54 LLVMValueRef alpha,
64 * Alpha testing needs to be done in the color buffer precision.
67 * alpha testing after converting the output colors, but that's not very
77 alpha = lp_build_clamp(&bld, alpha, bld.zero, bld.one);
80 alpha = lp_build_clamped_float_to_unsigned_norm(gallivm, type, dst_width, alpha);
87 test = lp_build_cmp(&bld, func, alpha, ref);
lp_bld_alpha.h 29 * Alpha testing to LLVM IR translation.
53 LLVMValueRef alpha,
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/llvmpipe/
lp_bld_alpha.c 29 * Alpha testing to LLVM IR translation.
54 LLVMValueRef alpha,
64 * Alpha testing needs to be done in the color buffer precision.
67 * alpha testing after converting the output colors, but that's not very
77 alpha = lp_build_clamp(&bld, alpha, bld.zero, bld.one);
80 alpha = lp_build_clamped_float_to_unsigned_norm(gallivm, type, dst_width, alpha);
87 test = lp_build_cmp(&bld, func, alpha, ref);
lp_bld_alpha.h 29 * Alpha testing to LLVM IR translation.
54 LLVMValueRef alpha,
  /xsrc/external/mit/libXrender/dist/src/
Color.c 75 def->alpha = elements[3];
88 def->alpha = 0xffff;
90 def->red = (unsigned short) ((unsigned) (def->red * def->alpha) / 0xffffU);
91 def->green = (unsigned short) ((unsigned) (def->green * def->alpha) / 0xffffU);
92 def->blue = (unsigned short) ((unsigned) (def->blue * def->alpha) / 0xffffU);
  /xsrc/external/mit/MesaLib/dist/src/mesa/swrast/
s_alpha.c 27 * \brief Functions to apply alpha test.
38 #define ALPHA_TEST(ALPHA, LOOP_CODE) \
43 mask[i] &= (ALPHA < ref); \
49 mask[i] &= (ALPHA <= ref); \
55 mask[i] &= (ALPHA >= ref); \
61 mask[i] &= (ALPHA > ref); \
67 mask[i] &= (ALPHA != ref); \
73 mask[i] &= (ALPHA == ref); \
78 _mesa_problem(ctx, "Invalid alpha test in _swrast_alpha_test" ); \
86 * Perform the alpha test for an array of pixels
135 GLfixed alpha = span->alpha; local
138 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); local
142 GLfixed alpha = span->alpha; local
145 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); local
149 GLfloat alpha = FixedToFloat(span->alpha); local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/swrast/
s_alpha.c 27 * \brief Functions to apply alpha test.
38 #define ALPHA_TEST(ALPHA, LOOP_CODE) \
43 mask[i] &= (ALPHA < ref); \
49 mask[i] &= (ALPHA <= ref); \
55 mask[i] &= (ALPHA >= ref); \
61 mask[i] &= (ALPHA > ref); \
67 mask[i] &= (ALPHA != ref); \
73 mask[i] &= (ALPHA == ref); \
78 _mesa_problem(ctx, "Invalid alpha test in _swrast_alpha_test" ); \
86 * Perform the alpha test for an array of pixels
135 GLfixed alpha = span->alpha; local
138 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); local
142 GLfixed alpha = span->alpha; local
145 ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); local
149 GLfloat alpha = FixedToFloat(span->alpha); local
    [all...]
  /xsrc/external/mit/pixman/dist/test/
alpha-loop.c 12 uint8_t *alpha; local
17 alpha = make_random_bytes (WIDTH * HEIGHT);
21 a = pixman_image_create_bits (PIXMAN_a8, WIDTH, HEIGHT, (uint32_t *)alpha, WIDTH);
  /xsrc/external/mit/MesaLib/dist/src/compiler/nir/
nir_lower_blend.h 47 nir_lower_blend_channel alpha; member in struct:__anon784
nir_lower_alpha_test.c 27 * Implements GL alpha testing by comparing the output color's alpha to the
30 * The alpha_to_one value overrides the source alpha to 1.0 to implement
31 * GL_SAMPLE_ALPHA_TO_ONE, which applies before the alpha test (and would be
32 * rather silly to use with alpha test, but the spec permits).
87 nir_ssa_def *alpha; local
89 alpha = nir_imm_float(&b, 1.0);
91 alpha = nir_channel(&b, nir_ssa_for_src(&b, intr->src[1], 4),
94 alpha = nir_channel(&b, nir_ssa_for_src(&b, intr->src[0], 4),
110 nir_compare_func(&b, func, alpha, alpha_ref)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/main/
accum.h 45 _mesa_ClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
  /xsrc/external/mit/MesaLib/dist/src/mesa/tnl_dd/
t_dd_vertex.h 36 GLubyte alpha, blue, green, red; member in struct:__anon2702
38 GLubyte red, green, blue, alpha;
44 GLubyte alpha, red, green, blue; member in struct:__anon2703
46 GLubyte blue, green, red, alpha;
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a2xx/
fd2_zsa.c 53 COND(!cso->alpha.enabled, A2XX_RB_DEPTHCONTROL_EARLY_Z_ENABLE);
87 if (cso->alpha.enabled) {
89 A2XX_RB_COLORCONTROL_ALPHA_FUNC(cso->alpha.func) |
91 so->rb_alpha_ref = fui(cso->alpha.ref_value);
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a3xx/
fd3_zsa.c 90 if (cso->alpha.enabled) {
93 A3XX_RB_RENDER_CONTROL_ALPHA_TEST_FUNC(cso->alpha.func);
95 A3XX_RB_ALPHA_REF_UINT(cso->alpha.ref_value * 255.0) |
96 A3XX_RB_ALPHA_REF_FLOAT(cso->alpha.ref_value);
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
accum.h 45 _mesa_ClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/tnl_dd/
t_dd_vertex.h 36 GLubyte alpha, blue, green, red; member in struct:__anon5021
38 GLubyte red, green, blue, alpha;
44 GLubyte alpha, red, green, blue; member in struct:__anon5022
46 GLubyte blue, green, red, alpha;
  /xsrc/external/mit/libdrm/dist/tests/etnaviv/
write_bmp.h 32 void bmp_dump32_ex(char *buffer, unsigned width, unsigned height, bool flip, bool bgra, bool alpha, const char *filename);
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
nir_lower_alpha_test.c 27 * Implements GL alpha testing by comparing the output color's alpha to the
30 * The alpha_to_one value overrides the source alpha to 1.0 to implement
31 * GL_SAMPLE_ALPHA_TO_ONE, which applies before the alpha test (and would be
32 * rather silly to use with alpha test, but the spec permits).
85 nir_ssa_def *alpha; local
87 alpha = nir_imm_float(&b, 1.0);
89 alpha = nir_channel(&b, nir_ssa_for_src(&b, intr->src[1], 4),
92 alpha = nir_channel(&b, nir_ssa_for_src(&b, intr->src[0], 4),
98 alpha, nir_load_alpha_ref_float(&b))
    [all...]
  /xsrc/external/mit/xf86-video-intel/dist/test/
test.h 101 static inline uint32_t color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
103 uint16_t ra = red * alpha;
104 uint16_t ga = green * alpha;
105 uint16_t ba = blue * alpha;
107 return alpha << 24 | ra >> 8 << 16 | ga >> 8 << 8 | ba >> 8;
112 uint32_t ra = c->red * c->alpha;
113 uint32_t ga = c->green * c->alpha;
114 uint32_t ba = c->blue * c->alpha;
116 return c->alpha >> 8 << 24 | ra >> 24 << 16 | ga >> 24 << 8 | ba >> 24;
render-composite-solid.c 18 uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)
23 render_color.red = red * alpha;
24 render_color.green = green * alpha;
25 render_color.blue = blue * alpha;
26 render_color.alpha = alpha << 8 | alpha;
56 int alpha = rand() % 0xff; local
60 red, green, blue, alpha);
64 cells[y*tt.width+x] = color(red, green, blue, alpha);
130 int alpha = rand() % 0xff; local
210 int alpha = rand() % 0xff; local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/amd/common/
ac_shader_util.c 328 /* Alpha is needed for alpha-to-coverage.
329 * Blending may be with or without alpha.
331 unsigned normal = 0; /* most optimal, may not support blending or export alpha */
332 unsigned alpha = 0; /* exports alpha, but may not support blending */ local
333 unsigned blend = 0; /* supports blending, but may not export alpha */
334 unsigned blend_alpha = 0; /* least optimal, supports blending and exports alpha */
353 alpha = blend = blend_alpha = normal = V_028714_SPI_SHADER_UINT16_ABGR;
355 alpha = blend = blend_alpha = normal = V_028714_SPI_SHADER_SINT16_ABGR
    [all...]
  /xsrc/external/mit/pixman/dist/pixman/
pixman-solid-fill.c 33 ((unsigned int) color->alpha >> 8 << 24) |
44 result.a = pixman_unorm_to_float (color->alpha, 16);
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a5xx/
fd5_zsa.c 65 if (!(cso->stencil->enabled || cso->alpha.enabled || !cso->depth.writemask))
108 if (cso->alpha.enabled) {
109 uint32_t ref = cso->alpha.ref_value * 255.0;
113 A5XX_RB_ALPHA_CONTROL_ALPHA_TEST_FUNC(cso->alpha.func);
  /xsrc/external/mit/libdrm/dist/tests/util/
format.h 38 struct util_color_component alpha; member in struct:util_rgb_info
  /xsrc/external/mit/pixman/dist/demos/
srgb-test.c 51 float alpha; local
71 alpha = (float) x / WIDTH;
72 src1[p + x] = linear_argb_to_premult_argb (alpha, 1, 0, 1);
73 dest[p + x] = linear_argb_to_premult_srgb_argb (1-alpha, 0, 1, 0);

Completed in 23 milliseconds

1 2 3 4 5 6 7 8 91011>>