freedreno: Fix a couple of warnings
authorKristian H. Kristensen <hoegsberg@chromium.org>
Tue, 26 Feb 2019 06:14:53 +0000 (22:14 -0800)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Thu, 28 Feb 2019 18:43:53 +0000 (10:43 -0800)
Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/freedreno/ir3/ir3.h
src/gallium/drivers/freedreno/a4xx/fd4_program.c

index 27a52c54ad4a4d539194474075ca444b37cf308d..53e56edb3c44e3065aabd006bc79755390ad4853 100644 (file)
@@ -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 {
index 952b56cefcba8467d60244225aed00bdff3b16d9..970f918faaea47bd8075a2ab16fa9da0b990df61 100644 (file)
@@ -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) {