Home
last modified time | relevance | path

Searched refs:swizzles (Results 1 – 25 of 37) sorted by relevance

12

/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_swizzle.c253 const unsigned char swizzles[4]) in lp_build_swizzle_aos()
260 if (swizzles[0] == PIPE_SWIZZLE_RED && in lp_build_swizzle_aos()
261 swizzles[1] == PIPE_SWIZZLE_GREEN && in lp_build_swizzle_aos()
262 swizzles[2] == PIPE_SWIZZLE_BLUE && in lp_build_swizzle_aos()
263 swizzles[3] == PIPE_SWIZZLE_ALPHA) { in lp_build_swizzle_aos()
267 if (swizzles[0] == swizzles[1] && in lp_build_swizzle_aos()
268 swizzles[1] == swizzles[2] && in lp_build_swizzle_aos()
269 swizzles[2] == swizzles[3]) { in lp_build_swizzle_aos()
270 switch (swizzles[0]) { in lp_build_swizzle_aos()
275 return lp_build_swizzle_scalar_aos(bld, a, swizzles[0]); in lp_build_swizzle_aos()
[all …]
Dlp_bld_sample.h278 unsigned char swizzles[4]; in apply_sampler_swizzle() local
280 swizzles[0] = bld->static_state->swizzle_r; in apply_sampler_swizzle()
281 swizzles[1] = bld->static_state->swizzle_g; in apply_sampler_swizzle()
282 swizzles[2] = bld->static_state->swizzle_b; in apply_sampler_swizzle()
283 swizzles[3] = bld->static_state->swizzle_a; in apply_sampler_swizzle()
285 lp_build_swizzle_soa_inplace(&bld->texel_bld, texel, swizzles); in apply_sampler_swizzle()
Dlp_bld_swizzle.h87 const unsigned char swizzles[4]);
99 const unsigned char swizzles[4],
106 const unsigned char swizzles[4]);
Dlp_bld_tgsi_aos.c74 unsigned char swizzles[4]; in swizzle_aos() local
82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x]; in swizzle_aos()
83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y]; in swizzle_aos()
84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z]; in swizzle_aos()
85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_w]; in swizzle_aos()
87 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles); in swizzle_aos()
96 chan = bld->swizzles[chan]; in swizzle_scalar_aos()
141 bld->swizzles[chan]); in emit_fetch_constant()
332 bld->swizzles); in lp_emit_store_aos()
986 const unsigned char swizzles[4], in lp_build_tgsi_aos()
[all …]
Dlp_bld_format_aos.c65 unsigned char swizzles[4]; in lp_build_format_swizzle_aos() local
87 swizzles[chan] = swizzle; in lp_build_format_swizzle_aos()
90 return lp_build_swizzle_aos(bld, unswizzled, swizzles); in lp_build_format_swizzle_aos()
270 LLVMValueRef swizzles[4]; in lp_build_pack_rgba_aos() local
291 swizzles[i] = lp_build_const_int32(gallivm, j); in lp_build_pack_rgba_aos()
293 swizzles[i] = LLVMGetUndef(LLVMInt32TypeInContext(gallivm->context)); in lp_build_pack_rgba_aos()
298 LLVMConstVector(swizzles, 4), ""); in lp_build_pack_rgba_aos()
Dlp_bld_tgsi.h229 const unsigned char swizzles[4],
447 unsigned char swizzles[4]; member
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_parse.py107 def __init__(self, name, layout, block_width, block_height, channels, swizzles, colorspace): argument
113 self.swizzles = swizzles
202 swizzle = self.swizzles[i]
253 swizzles = [_swizzle_parse_map[swizzle] for swizzle in fields[8]]
260 swizzle = swizzles[i]
265 swizzle = swizzles[i]
301 format = Format(name, layout, block_width, block_height, channels, swizzles, colorspace)
Du_format_table.py123 swizzle = format.swizzles[i]
152 if format.colorspace == ZS and format.swizzles[0] != SWIZZLE_NONE:
162 if format.colorspace == ZS and format.swizzles[1] != SWIZZLE_NONE:
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_wm_surface_state.c665 int swizzles[SWIZZLE_NIL + 1] = { in brw_get_texture_swizzle() local
679 swizzles[0] = SWIZZLE_ZERO; in brw_get_texture_swizzle()
680 swizzles[1] = SWIZZLE_ZERO; in brw_get_texture_swizzle()
681 swizzles[2] = SWIZZLE_ZERO; in brw_get_texture_swizzle()
682 swizzles[3] = SWIZZLE_X; in brw_get_texture_swizzle()
685 swizzles[0] = SWIZZLE_X; in brw_get_texture_swizzle()
686 swizzles[1] = SWIZZLE_X; in brw_get_texture_swizzle()
687 swizzles[2] = SWIZZLE_X; in brw_get_texture_swizzle()
688 swizzles[3] = SWIZZLE_ONE; in brw_get_texture_swizzle()
691 swizzles[0] = SWIZZLE_X; in brw_get_texture_swizzle()
[all …]
Dbrw_vec4.cpp118 int swizzles[4]; in src_reg() local
126 swizzles[next_chan++] = last = i; in src_reg()
130 swizzles[next_chan] = last; in src_reg()
133 this->swizzle = BRW_SWIZZLE4(swizzles[0], swizzles[1], in src_reg()
134 swizzles[2], swizzles[3]); in src_reg()
Dbrw_program.h34 uint16_t swizzles[MAX_SAMPLERS]; member
Dbrw_wm.c369 old_key->swizzles[i], key->swizzles[i]); in brw_debug_recompile_sampler_key()
442 key->swizzles[s] = SWIZZLE_NOOP; in brw_populate_sampler_prog_key_data()
463 key->swizzles[s] = brw_get_texture_swizzle(t); in brw_populate_sampler_prog_key_data()
/external/deqp/android/cts/master/
Dgles2-master.txt1115 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_vertex
1116 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_fragment
1117 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_vertex
1118 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_fragment
1119 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_vertex
1120 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_fragment
1121 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_vertex
1122 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_fragment
1123 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_vertex
1124 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_fragment
[all …]
Dgles3-master.txt2778 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_vertex
2779 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_fragment
2780 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_vertex
2781 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_fragment
2782 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_vertex
2783 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_fragment
2784 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_vertex
2785 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_fragment
2786 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_vertex
2787 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_fragment
[all …]
/external/deqp/modules/gles3/functional/
Des3fTextureSwizzleTests.cpp268 } swizzles[] = in init() local
305 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++) in init()
307 if (swizzles[swzNdx].swizzle == defaultSwizzles[chanNdx]) in init()
310 string name = string(channels[chanNdx].name) + "_" + swizzles[swzNdx].name; in init()
311 deUint32 swz = swizzles[swzNdx].swizzle; in init()
Des3fFramebufferBlitTests.cpp963 } swizzles[] = in init() local
982 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++) in init()
984 …string name = string(copyRects[rectNdx].name) + (swizzles[swzNdx].name ? (string("_") + swizzles[… in init()
985 IVec4 srcSwz = swizzles[swzNdx].srcSwizzle; in init()
986 IVec4 dstSwz = swizzles[swzNdx].dstSwizzle; in init()
998 for (int swzNdx = 0; swzNdx < DE_LENGTH_OF_ARRAY(swizzles); swzNdx++) in init()
1000 …istency_") + filterConsistencyRects[rectNdx].name + (swizzles[swzNdx].name ? (string("_") + swizzl… in init()
1001 IVec4 srcSwz = swizzles[swzNdx].srcSwizzle; in init()
1002 IVec4 dstSwz = swizzles[swzNdx].dstSwizzle; in init()
/external/deqp/android/cts/master/src/
Dgles2-failures.txt2229 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_bvec4_xyxx_vertex
2230 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_gggg_vertex
2231 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_grg_vertex
2232 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_gr_vertex
2233 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_rgrr_vertex
2234 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_rg_vertex
2235 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_rr_vertex
2236 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_r_vertex
2237 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_ss_vertex
2238 dEQP-GLES2.functional.shaders.swizzles.vector_swizzles.mediump_ivec2_stss_vertex
[all …]
/external/deqp/modules/gles2/performance/
Des2pTextureCases.cpp163 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), in init() local
165 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)]; in init()
/external/deqp/modules/gles3/performance/
Des3pTextureCases.cpp189 static const IVec4 swizzles[] = { IVec4(0,1,2,3), IVec4(1,2,3,0), IVec4(2,3,0,1), IVec4(3,0,1,2), in init() local
191 const IVec4& sw = swizzles[texNdx % DE_LENGTH_OF_ARRAY(swizzles)]; in init()
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_tile_soa.py95 swizzle = format.swizzles[i]
99 swizzle = format.swizzles[0]
153 swizzle = format.swizzles[i]
/external/deqp/android/cts/lmp-mr1/
Dgles3-master.txt2751 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_vertex
2752 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_fragment
2753 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_vertex
2754 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_fragment
2755 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_vertex
2756 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_fragment
2757 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_vertex
2758 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_fragment
2759 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_vertex
2760 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_fragment
[all …]
/external/deqp/android/cts/lmp/
Dgles3-master.txt2734 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_vertex
2735 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_fragment
2736 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_vertex
2737 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_fragment
2738 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_vertex
2739 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_fragment
2740 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_vertex
2741 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_fragment
2742 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_vertex
2743 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_fragment
[all …]
/external/deqp/android/cts/lmp/src/
Des30-lmp.txt2734 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_vertex
2735 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_fragment
2736 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_vertex
2737 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_fragment
2738 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_vertex
2739 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_fragment
2740 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_vertex
2741 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_fragment
2742 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_vertex
2743 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_fragment
[all …]
/external/deqp/android/cts/lmp-mr1/src/
Des30-lmp-mr1.txt2751 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_vertex
2752 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_x_fragment
2753 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_vertex
2754 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xx_fragment
2755 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_vertex
2756 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_xy_fragment
2757 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_vertex
2758 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yx_fragment
2759 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_vertex
2760 dEQP-GLES3.functional.shaders.swizzles.vector_swizzles.mediump_vec2_yxy_fragment
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_setup_tgsi_llvm.c68 LLVMValueRef swizzles[4]; in emit_swizzle() local
72 swizzles[0] = LLVMConstInt(i32t, swizzle_x, 0); in emit_swizzle()
73 swizzles[1] = LLVMConstInt(i32t, swizzle_y, 0); in emit_swizzle()
74 swizzles[2] = LLVMConstInt(i32t, swizzle_z, 0); in emit_swizzle()
75 swizzles[3] = LLVMConstInt(i32t, swizzle_w, 0); in emit_swizzle()
80 LLVMConstVector(swizzles, 4), ""); in emit_swizzle()

12