summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_instr_set.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-04-17 17:01:14 -0500
committerJason Ekstrand <[email protected]>2019-04-18 17:12:44 +0000
commiteee994e769259887ea17ec653ee1ea277416ea8b (patch)
treec61b00b2b642abb4d17e79baf7bca23c1f4bc360 /src/compiler/nir/nir_instr_set.c
parentdb5b372bb9f5a0dfea86618f8f9832f25d9eaf71 (diff)
nir: Drop "struct" from some nir_* declarations
Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_instr_set.c')
-rw-r--r--src/compiler/nir/nir_instr_set.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/nir/nir_instr_set.c b/src/compiler/nir/nir_instr_set.c
index d53e044c901..6605d2a1ab3 100644
--- a/src/compiler/nir/nir_instr_set.c
+++ b/src/compiler/nir/nir_instr_set.c
@@ -281,10 +281,10 @@ nir_srcs_equal(nir_src src1, nir_src src2)
* that instruction is returned as a \c nir_alu_instr. Otherwise \c NULL is
* returned.
*/
-static const struct nir_alu_instr *
+static const nir_alu_instr *
get_neg_instr(const nir_src *s)
{
- const struct nir_alu_instr *const alu = nir_src_as_alu_instr_const(s);
+ const nir_alu_instr *const alu = nir_src_as_alu_instr_const(s);
return alu != NULL && (alu->op == nir_op_fneg || alu->op == nir_op_ineg)
? alu : NULL;
@@ -440,7 +440,7 @@ nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
uint8_t alu1_swizzle[4] = {0};
nir_src alu1_actual_src;
- const struct nir_alu_instr *const neg1 = get_neg_instr(&alu1->src[src1].src);
+ const nir_alu_instr *const neg1 = get_neg_instr(&alu1->src[src1].src);
if (neg1) {
parity = !parity;
@@ -457,7 +457,7 @@ nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
uint8_t alu2_swizzle[4] = {0};
nir_src alu2_actual_src;
- const struct nir_alu_instr *const neg2 = get_neg_instr(&alu2->src[src2].src);
+ const nir_alu_instr *const neg2 = get_neg_instr(&alu2->src[src2].src);
if (neg2) {
parity = !parity;