Commit 6bf2996a authored by Jesse Natalie's avatar Jesse Natalie Committed by Erik Faye-Lund
Browse files

Revert "nir: Add alignment properties to load/store deref intrinsics"

This reverts commit b62ab035.
parent f11bef6f
......@@ -1820,11 +1820,8 @@ static inline void
nir_intrinsic_set_align(nir_intrinsic_instr *intrin,
unsigned align_mul, unsigned align_offset)
{
assert(align_mul == 0 || util_is_power_of_two_nonzero(align_mul));
assert(align_mul == 0 ? align_offset == 0 : align_offset < align_mul);
assert(align_mul != 0 ||
intrin->intrinsic == nir_intrinsic_load_deref ||
intrin->intrinsic == nir_intrinsic_store_deref);
assert(util_is_power_of_two_nonzero(align_mul));
assert(align_offset < align_mul);
nir_intrinsic_set_align_mul(intrin, align_mul);
nir_intrinsic_set_align_offset(intrin, align_offset);
}
......@@ -1841,7 +1838,7 @@ nir_intrinsic_align(const nir_intrinsic_instr *intrin)
{
const unsigned align_mul = nir_intrinsic_align_mul(intrin);
const unsigned align_offset = nir_intrinsic_align_offset(intrin);
assert(align_mul == 0 ? align_offset == 0 : align_offset < align_mul);
assert(align_offset < align_mul);
return align_offset ? 1 << (ffs(align_offset) - 1) : align_mul;
}
......
......@@ -166,8 +166,8 @@ intrinsic("nop", flags=[CAN_ELIMINATE])
intrinsic("load_param", dest_comp=0, indices=[PARAM_IDX], flags=[CAN_ELIMINATE])
intrinsic("load_deref", dest_comp=0, src_comp=[-1],
indices=[ACCESS, ALIGN_MUL, ALIGN_OFFSET], flags=[CAN_ELIMINATE])
intrinsic("store_deref", src_comp=[-1, 0], indices=[WRMASK, ACCESS, ALIGN_MUL, ALIGN_OFFSET])
indices=[ACCESS], flags=[CAN_ELIMINATE])
intrinsic("store_deref", src_comp=[-1, 0], indices=[WRMASK, ACCESS])
intrinsic("copy_deref", src_comp=[-1, -1], indices=[DST_ACCESS, SRC_ACCESS])
intrinsic("memcpy_deref", src_comp=[-1, -1, 1], indices=[DST_ACCESS, SRC_ACCESS])
......
......@@ -275,7 +275,6 @@ void nir_load_store_vectorize_test::create_shared_load(
nir_ssa_dest_init(&load->instr, &load->dest, components, bit_size, NULL);
load->num_components = components;
load->src[0] = nir_src_for_ssa(&deref->dest.ssa);
nir_intrinsic_set_align(load, (bit_size == 1 ? 32 : bit_size) / 8, 0);
nir_builder_instr_insert(b, &load->instr);
nir_instr *mov = nir_mov(b, &load->dest.ssa)->parent_instr;
loads[id] = &nir_instr_as_alu(mov)->src[0];
......@@ -296,7 +295,6 @@ void nir_load_store_vectorize_test::create_shared_store(
store->src[0] = nir_src_for_ssa(&deref->dest.ssa);
store->src[1] = nir_src_for_ssa(value);
nir_intrinsic_set_write_mask(store, wrmask & ((1 << components) - 1));
nir_intrinsic_set_align(store, (bit_size == 1 ? 32 : bit_size) / 8, 0);
nir_builder_instr_insert(b, &store->instr);
}
......@@ -1134,7 +1132,7 @@ TEST_F(nir_load_store_vectorize_test, shared_load_distant_64bit)
nir_validate_shader(b->shader, NULL);
ASSERT_EQ(count_intrinsics(nir_intrinsic_load_deref), 2);
EXPECT_TRUE(run_vectorizer(nir_var_mem_shared));
EXPECT_FALSE(run_vectorizer(nir_var_mem_shared));
ASSERT_EQ(count_intrinsics(nir_intrinsic_load_deref), 2);
}
......
......@@ -238,11 +238,11 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &vertexPosition_modelspace (shader_in vec3)
vec3 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec3 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = load_const (0x3f800000 /* 1.000000 */)
vec4 32 ssa_3 = vec4 ssa_1.x, ssa_1.y, ssa_1.z, ssa_2
vec1 32 ssa_4 = deref_var &gl_Position (shader_out vec4)
intrinsic store_deref (ssa_4, ssa_3) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_4, ssa_3) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})");
......@@ -267,7 +267,7 @@ impl main {
/* preds: */
vec3 32 ssa_0 = load_const (0x3f800000 /* 1.000000 */, 0x00000000 /* 0.000000 */, 0x00000000 /* 0.000000 */)
vec1 32 ssa_1 = deref_var &color (shader_out vec3)
intrinsic store_deref (ssa_1, ssa_0) (7, 0, 0, 0) /* wrmask=xyz */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_1, ssa_0) (7, 0) /* wrmask=xyz */ /* access=0 */
/* succs: block_1 */
block block_1:
})");
......@@ -297,7 +297,7 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &vertexPosition_modelspace (shader_in vec3)
vec3 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec3 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = load_const (0x00000000 /* 0.000000 */)
vec4 32 ssa_3 = intrinsic load_uniform (ssa_2) (0, 4, 2) /* base=0 */ /* range=4 */ /* type=int */ /* MVP */
vec4 32 ssa_4 = fmul ssa_3, ssa_1.xxxx
......@@ -313,7 +313,7 @@ impl main {
vec4 32 ssa_14 = intrinsic load_uniform (ssa_13) (0, 4, 5) /* base=0 */ /* range=4 */ /* type=uint1 */ /* MVP */
vec4 32 ssa_15 = fadd ssa_12, ssa_14
vec1 32 ssa_16 = deref_var &gl_Position (shader_out vec4)
intrinsic store_deref (ssa_16, ssa_15) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_16, ssa_15) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})");
......@@ -337,11 +337,11 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &UV (shader_in vec2)
vec2 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec2 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec4 32 ssa_2 = tex ssa_1 (coord), 0 (texture), 0 (sampler)
vec1 32 ssa_3 = deref_var &color (shader_out vec3)
vec3 32 ssa_4 = mov ssa_2.xyz
intrinsic store_deref (ssa_3, ssa_4) (7, 0, 0, 0) /* wrmask=xyz */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_3, ssa_4) (7, 0) /* wrmask=xyz */ /* access=0 */
/* succs: block_1 */
block block_1:
})");
......@@ -365,12 +365,12 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &texcoords (shader_in vec4)
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = mov ssa_1.x
vec1 32 ssa_3 = mov ssa_1.y
vec4 32 ssa_4 = tex ssa_2 (coord), ssa_3 (comparator), 0 (texture), 0 (sampler)
vec1 32 ssa_5 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_5, ssa_4) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_5, ssa_4) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})");
......@@ -405,7 +405,7 @@ impl main {
vec1 32 ssa_0 = load_const (0x3f000000 /* 0.500000 */)
vec4 32 ssa_1 = load_const (0x3f800000 /* 1.000000 */, 0x3f800000 /* 1.000000 */, 0x3f800000 /* 1.000000 */, 0x3f800000 /* 1.000000 */)
vec1 32 ssa_2 = deref_var &gl_FragCoord (shader_in vec4)
vec4 32 ssa_3 = intrinsic load_deref (ssa_2) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_3 = intrinsic load_deref (ssa_2) (0) /* access=0 */
vec1 32 ssa_4 = fmul ssa_3.x, ssa_0
vec1 32 ssa_5 = ffract ssa_4
vec1 1 ssa_6 = flt ssa_5, ssa_0
......@@ -414,7 +414,7 @@ impl main {
block block_1:
/* preds: block_0 */
vec1 32 ssa_7 = deref_var &gl_in_TexCoord0 (shader_in vec4)
vec4 32 ssa_8 = intrinsic load_deref (ssa_7) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_8 = intrinsic load_deref (ssa_7) (0) /* access=0 */
vec2 32 ssa_9 = mov ssa_8.xy
r0 = tex ssa_9 (coord), 0 (texture), 0 (sampler)
/* succs: block_3 */
......@@ -422,7 +422,7 @@ impl main {
block block_2:
/* preds: block_0 */
vec1 32 ssa_10 = deref_var &gl_in_TexCoord0 (shader_in vec4)
vec4 32 ssa_11 = intrinsic load_deref (ssa_10) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_11 = intrinsic load_deref (ssa_10) (0) /* access=0 */
vec2 32 ssa_12 = mov ssa_11.xy
r0 = tex ssa_12 (coord), 1 (texture), 1 (sampler)
/* succs: block_3 */
......@@ -432,7 +432,7 @@ impl main {
vec4 32 ssa_13 = fadd ssa_1, -r0
vec4 32 ssa_14 = bcsel ssa_6.xxxx, ssa_13, r0
vec1 32 ssa_15 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_15, ssa_14) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_15, ssa_14) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_4 */
block block_4:
})");
......@@ -471,7 +471,7 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &piglit_vertex (shader_in vec4)
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = load_const (0x00000000 /* 0.000000 */)
vec1 32 ssa_3 = load_const (0x00000003 /* 0.000000 */)
vec4 32 ssa_4 = load_const (0x00000000 /* 0.000000 */, 0x3f800000 /* 1.000000 */, 0x00000000 /* 0.000000 */, 0x3f800000 /* 1.000000 */)
......@@ -504,9 +504,9 @@ impl main {
vec1 1 ssa_10 = ieq ssa_7, ssa_3
vec4 32 ssa_11 = bcsel ssa_10.xxxx, ssa_4, ssa_5
vec1 32 ssa_12 = deref_var &gl_Position (shader_out vec4)
intrinsic store_deref (ssa_12, ssa_1) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_12, ssa_1) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_13 = deref_var &color (shader_out vec4)
intrinsic store_deref (ssa_13, ssa_11) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_13, ssa_11) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_6 */
block block_6:
})");
......@@ -530,7 +530,7 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &piglit_vertex (shader_in vec4)
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = load_const (0x00000000 /* 0.000000 */)
vec1 32 ssa_3 = load_const (0x00000003 /* 0.000000 */)
vec4 32 ssa_4 = load_const (0x00000000 /* 0.000000 */, 0x3f800000 /* 1.000000 */, 0x00000000 /* 0.000000 */, 0x3f800000 /* 1.000000 */)
......@@ -564,9 +564,9 @@ impl main {
vec1 1 ssa_7 = ieq r0, ssa_3
vec4 32 ssa_8 = bcsel ssa_7.xxxx, ssa_4, ssa_5
vec1 32 ssa_9 = deref_var &gl_Position (shader_out vec4)
intrinsic store_deref (ssa_9, ssa_1) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_9, ssa_1) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_10 = deref_var &color (shader_out vec4)
intrinsic store_deref (ssa_10, ssa_8) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_10, ssa_8) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_6 */
block block_6:
})");
......@@ -592,7 +592,7 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &gl_Vertex (shader_in vec4)
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec4 32 ssa_2 = load_const (0x00000000 /* 0.000000 */, 0x00000000 /* 0.000000 */, 0x00000000 /* 0.000000 */, 0x00000000 /* 0.000000 */)
vec1 32 ssa_3 = load_const (0x00000000 /* 0.000000 */)
vec1 32 ssa_4 = load_const (0x00000001 /* 0.000000 */)
......@@ -604,43 +604,43 @@ impl main {
vec4 32 ssa_10 = load_const (0x3f800000 /* 1.000000 */, 0x3e800000 /* 0.250000 */, 0x3f400000 /* 0.750000 */, 0x3f800000 /* 1.000000 */)
vec1 32 ssa_11 = deref_var &a1 (function_temp vec4[5])
vec1 32 ssa_12 = deref_array &(*ssa_11)[0] (function_temp vec4) /* &a1[0] */
intrinsic store_deref (ssa_12, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_12, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_13 = deref_array &(*ssa_11)[1] (function_temp vec4) /* &a1[1] */
intrinsic store_deref (ssa_13, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_13, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_14 = deref_array &(*ssa_11)[2] (function_temp vec4) /* &a1[2] */
intrinsic store_deref (ssa_14, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_14, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_15 = deref_array &(*ssa_11)[3] (function_temp vec4) /* &a1[3] */
intrinsic store_deref (ssa_15, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_15, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_16 = deref_array &(*ssa_11)[4] (function_temp vec4) /* &a1[4] */
intrinsic store_deref (ssa_16, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_16, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_17 = deref_var &a2 (function_temp vec4[5])
vec1 32 ssa_18 = deref_array &(*ssa_17)[0] (function_temp vec4) /* &a2[0] */
intrinsic store_deref (ssa_18, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_18, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_19 = deref_array &(*ssa_17)[1] (function_temp vec4) /* &a2[1] */
intrinsic store_deref (ssa_19, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_19, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_20 = deref_array &(*ssa_17)[2] (function_temp vec4) /* &a2[2] */
intrinsic store_deref (ssa_20, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_20, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_21 = deref_array &(*ssa_17)[3] (function_temp vec4) /* &a2[3] */
intrinsic store_deref (ssa_21, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_21, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_22 = deref_array &(*ssa_17)[4] (function_temp vec4) /* &a2[4] */
intrinsic store_deref (ssa_22, ssa_8) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_22, ssa_8) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_23 = intrinsic load_uniform (ssa_3) (0, 1, 2) /* base=0 */ /* range=1 */ /* writeIndex */
vec1 32 ssa_24 = deref_array &(*ssa_11)[ssa_23] (function_temp vec4) /* &a1[ssa_23] */
intrinsic store_deref (ssa_24, ssa_9) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_24, ssa_9) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_25 = deref_array &(*ssa_17)[ssa_23] (function_temp vec4) /* &a2[ssa_23] */
intrinsic store_deref (ssa_25, ssa_10) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_25, ssa_10) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_26 = intrinsic load_uniform (ssa_3) (1, 1, 2) /* base=1 */ /* range=1 */ /* readIndex */
vec1 32 ssa_27 = deref_array &(*ssa_11)[ssa_26] (function_temp vec4) /* &a1[ssa_26] */
vec4 32 ssa_28 = intrinsic load_deref (ssa_27) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_28 = intrinsic load_deref (ssa_27) (0) /* access=0 */
vec1 32 ssa_29 = deref_array &(*ssa_17)[ssa_26] (function_temp vec4) /* &a2[ssa_26] */
vec4 32 ssa_30 = intrinsic load_deref (ssa_29) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_30 = intrinsic load_deref (ssa_29) (0) /* access=0 */
vec4 32 ssa_31 = fadd ssa_28, ssa_30
vec4 32 ssa_32 = intrinsic load_deref (ssa_22) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_32 = intrinsic load_deref (ssa_22) (0) /* access=0 */
vec4 32 ssa_33 = fadd ssa_31, ssa_32
vec1 32 ssa_34 = deref_var &gl_Position (shader_out vec4)
intrinsic store_deref (ssa_34, ssa_1) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_34, ssa_1) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_35 = deref_var &color (shader_out vec4)
intrinsic store_deref (ssa_35, ssa_33) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_35, ssa_33) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})");
......@@ -693,7 +693,7 @@ impl main {
vec1 1 ssa_20 = ball_fequal2 ssa_18, ssa_1
vec4 32 ssa_21 = bcsel ssa_20.xxxx, ssa_7, ssa_8
vec1 32 ssa_22 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_22, ssa_21) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_22, ssa_21) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})");
......
......@@ -181,7 +181,7 @@ impl main {
/* preds: */
vec4 32 ssa_0 = load_const (0x3f800000 /* 1.000000 */, 0x00000000 /* 0.000000 */, 0x00000000 /* 0.000000 */, 0x3f800000 /* 1.000000 */)
vec1 32 ssa_1 = deref_var &color (shader_out vec4)
intrinsic store_deref (ssa_1, ssa_0) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_1, ssa_0) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
}
......@@ -256,11 +256,11 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &vertexPosition_modelspace (shader_in vec3)
vec3 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec3 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = deref_var &gl_Position (shader_out vec4)
vec1 32 ssa_3 = load_const (0x3f800000 /* 1.000000 */)
vec4 32 ssa_4 = vec4 ssa_1.x, ssa_1.y, ssa_1.z, ssa_3
intrinsic store_deref (ssa_2, ssa_4) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_2, ssa_4) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})";
......@@ -345,7 +345,7 @@ impl main {
vec1 32 ssa_1 = deref_var &color_in (uniform vec4)
vec4 32 ssa_2 = intrinsic load_ubo (ssa_0, ssa_0) (0, 4, 0) /* access=0 */ /* align_mul=4 */ /* align_offset=0 */
vec1 32 ssa_3 = deref_var &color (shader_out vec4)
intrinsic store_deref (ssa_3, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_3, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
}
......@@ -437,7 +437,7 @@ impl main {
vec1 32 ssa_3 = ishl ssa_2, ssa_6
vec4 32 ssa_4 = intrinsic load_ubo (ssa_0, ssa_3) (0, 4, 0) /* access=0 */ /* align_mul=4 */ /* align_offset=0 */
vec1 32 ssa_5 = deref_var &color (shader_out vec4)
intrinsic store_deref (ssa_5, ssa_4) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_5, ssa_4) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
}
......@@ -464,9 +464,9 @@ R"(shader: MESA_SHADER_FRAGMENT
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &gl_Color (shader_in vec4)
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = deref_var &gl_in (shader_in vec4)
vec4 32 ssa_3 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_3 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_4 = intrinsic load_front_face () ()
vec1 32 ssa_5 = load_const (0x00000000 /* 0.000000 */)
vec1 1 ssa_6 = ine ssa_4, ssa_5
......@@ -476,7 +476,7 @@ R"(shader: MESA_SHADER_FRAGMENT
vec1 32 ssa_10 = bcsel ssa_6, ssa_1.w, ssa_3.w
vec4 32 ssa_11 = vec4 ssa_7, ssa_8, ssa_9, ssa_10
vec1 32 ssa_12 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_12, ssa_11) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_12, ssa_11) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})";
......@@ -502,13 +502,13 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &packed:z (shader_in float)
vec1 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec1 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_2 = deref_var &gl_Color (shader_in vec4)
vec4 32 ssa_3 = intrinsic load_deref (ssa_2) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_3 = intrinsic load_deref (ssa_2) (0) /* access=0 */
vec1 32 ssa_4 = deref_var &gl_FragDepth (shader_out float)
intrinsic store_deref (ssa_4, ssa_1) (1, 0, 0, 0) /* wrmask=x */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_4, ssa_1) (1, 0) /* wrmask=x */ /* access=0 */
vec1 32 ssa_5 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_5, ssa_3) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_5, ssa_3) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})";
......@@ -538,7 +538,7 @@ impl main {
block block_0:
/* preds: */
vec1 32 ssa_0 = deref_var &gl_Vertex (shader_in vec4)
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_1 = intrinsic load_deref (ssa_0) (0) /* access=0 */
vec1 32 ssa_33 = load_const (0x00000000 /* 0.000000 */)
vec4 32 ssa_53 = intrinsic load_ubo (ssa_33, ssa_33) (0, 4, 0) /* access=0 */ /* align_mul=4 */ /* align_offset=0 */
vec1 32 ssa_85 = fmul ssa_53.y, ssa_1.y
......@@ -563,13 +563,13 @@ impl main {
vec1 32 ssa_120 = ffma ssa_41, ssa_42, ssa_1.w
vec1 32 ssa_70 = fmul ssa_120, ssa_42
vec4 32 ssa_74 = vec4 ssa_1.x, ssa_1.y, ssa_70, ssa_1.w
intrinsic store_deref (ssa_25, ssa_74) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_25, ssa_74) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_27 = deref_var &clipdist_2 (shader_out vec4)
vec4 32 ssa_114 = vec4 ssa_127, ssa_33, ssa_124, ssa_33
intrinsic store_deref (ssa_27, ssa_114) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_27, ssa_114) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_29 = deref_var &clipdist_3 (shader_out vec4)
vec4 32 ssa_119 = vec4 ssa_121, ssa_33, ssa_33, ssa_33
intrinsic store_deref (ssa_29, ssa_119) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_29, ssa_119) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})";
......@@ -600,7 +600,7 @@ impl main {
vec1 32 ssa_18 = intrinsic load_ubo (ssa_1, ssa_23) (0, 4, 0) /* access=0 */ /* align_mul=4 */ /* align_offset=0 */
vec4 32 ssa_5 = txf ssa_12 (coord), ssa_18 (lod), 0 (texture), 0 (sampler)
vec1 32 ssa_6 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_6, ssa_5) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_6, ssa_5) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_1 */
block block_1:
})";
......@@ -627,7 +627,7 @@ impl main {
/* preds: */
vec1 32 ssa_0 = load_const (0x3f000000 /* 0.500000 */)
vec1 32 ssa_3 = deref_var &texcoords (shader_in vec4)
vec4 32 ssa_4 = intrinsic load_deref (ssa_3) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_4 = intrinsic load_deref (ssa_3) (0) /* access=0 */
vec1 1 ssa_5 = flt ssa_4.x, ssa_0
/* succs: block_1 block_2 */
if ssa_5 {
......@@ -647,7 +647,7 @@ impl main {
/* preds: block_1 block_2 */
vec4 32 ssa_14 = phi block_1: ssa_9, block_2: ssa_13
vec1 32 ssa_15 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_15, ssa_14) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_15, ssa_14) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_4 */
block block_4:
})";
......@@ -676,7 +676,7 @@ impl main {
/* preds: */
vec1 32 ssa_0 = load_const (0x3f000000 /* 0.500000 */)
vec1 32 ssa_3 = deref_var &texcoords (shader_in vec4)
vec4 32 ssa_4 = intrinsic load_deref (ssa_3) (0, 0, 0) /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
vec4 32 ssa_4 = intrinsic load_deref (ssa_3) (0) /* access=0 */
vec1 1 ssa_5 = flt ssa_4.x, ssa_0
/* succs: block_1 block_5 */
if ssa_5 {
......@@ -728,7 +728,7 @@ impl main {
/* preds: block_4 block_8 */
vec4 32 ssa_26 = phi block_4: ssa_15, block_8: ssa_25
vec1 32 ssa_27 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_27, ssa_26) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_27, ssa_26) (15, 0) /* wrmask=xyzw */ /* access=0 */
/* succs: block_10 */
block block_10:
})";
......@@ -759,14 +759,14 @@ impl main {
vec1 32 ssa_1 = load_const (0x00000020 /* 0.000000 */)
vec4 32 ssa_2 = intrinsic load_ubo (ssa_0, ssa_1) (0, 4, 0) /* access=0 */ /* align_mul=4 */ /* align_offset=0 */
vec1 32 ssa_3 = deref_var &gl_FragColor (shader_out vec4)
intrinsic store_deref (ssa_3, ssa_2) (15, 0, 0, 0) /* wrmask=xyzw */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_3, ssa_2) (15, 0) /* wrmask=xyzw */ /* access=0 */
vec1 32 ssa_11 = load_const (0x00000001 /* 0.000000 */)
vec2 32 ssa_13 = intrinsic load_ubo (ssa_11, ssa_0) (0, 4, 0) /* access=0 */ /* align_mul=4 */ /* align_offset=0 */
vec1 32 ssa_6 = intrinsic load_front_face () ()
vec1 1 ssa_15 = ine ssa_6, ssa_0
vec1 32 ssa_9 = bcsel ssa_15, ssa_13.x, ssa_13.y
vec1 32 ssa_10 = deref_var &StencilRef (shader_out uint)
intrinsic store_deref (ssa_10, ssa_9) (1, 0, 0, 0) /* wrmask=x */ /* access=0 */ /* align_mul=0 */ /* align_offset=0 */
intrinsic store_deref (ssa_10, ssa_9) (1, 0) /* wrmask=x */ /* access=0 */
/* succs: block_1 */
block block_1:
})";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment