summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian H. Kristensen <hoegsberg@chromium.org>2019-02-25 22:14:53 -0800
committerKristian H. Kristensen <hoegsberg@chromium.org>2019-02-28 10:43:53 -0800
commit87c2e8cbc9e5e711989c658433aef18620e2c278 (patch)
treeb071a2b0571782451b78fc844c2b1e917b239c2f
parenta5a19d1bc8d057845af07b14eb62d83c031fe662 (diff)
freedreno: Fix a couple of warnings
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
-rw-r--r--src/freedreno/ir3/ir3.h2
-rw-r--r--src/gallium/drivers/freedreno/a4xx/fd4_program.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h
index 27a52c54ad4..53e56edb3c4 100644
--- a/src/freedreno/ir3/ir3.h
+++ b/src/freedreno/ir3/ir3.h
@@ -248,7 +248,7 @@ struct ir3_instruction {
int src_offset;
int dst_offset;
int iim_val : 3; /* for ldgb/stgb, # of components */
- int d : 3;
+ unsigned d : 3;
bool typed : 1;
} cat6;
struct {
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_program.c b/src/gallium/drivers/freedreno/a4xx/fd4_program.c
index 952b56cefcb..970f918faae 100644
--- a/src/gallium/drivers/freedreno/a4xx/fd4_program.c
+++ b/src/gallium/drivers/freedreno/a4xx/fd4_program.c
@@ -79,7 +79,7 @@ emit_shader(struct fd_ringbuffer *ring, const struct ir3_shader_variant *so)
{
const struct ir3_info *si = &so->info;
enum a4xx_state_block sb = fd4_stage2shadersb(so->type);
- enum adreno_state_src src;
+ enum a4xx_state_src src;
uint32_t i, sz, *bin;
if (fd_mesa_debug & FD_DBG_DIRECT) {