i965/fs: Use unsigned for CS/VS atomics pixel mask immediate data
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 21 Feb 2015 23:00:28 +0000 (15:00 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 10 Mar 2015 07:13:08 +0000 (00:13 -0700)
brw_imm_ud(0xffff) should have been converted to fs_reg(0xffffu) to
make sure the uint32_t fs_reg constructor was matched.

commit 49a938a265f5959c9b558995cc658f80acb6eb18
Author: Jordan Justen <jordan.l.justen@intel.com>
Date:   Fri Feb 20 12:12:25 2015 -0800
    i965/fs: Use fs_reg for CS/VS atomics pixel mask immediate data

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index 7859fefe7ad6941906177fdc44558626917d302f..3025a9d277940ecdfd5989be713fdc88a24b6c36 100644 (file)
@@ -3108,7 +3108,7 @@ fs_visitor::emit_untyped_atomic(unsigned atomic_op, unsigned surf_index,
        */
       assert(stage == MESA_SHADER_VERTEX || stage == MESA_SHADER_COMPUTE);
       emit(MOV(component(sources[0], 7),
-               fs_reg(0xffff)))->force_writemask_all = true;
+               fs_reg(0xffffu)))->force_writemask_all = true;
    }
    length++;
 
@@ -3171,7 +3171,7 @@ fs_visitor::emit_untyped_surface_read(unsigned surf_index, fs_reg dst,
        */
       assert(stage == MESA_SHADER_VERTEX || stage == MESA_SHADER_COMPUTE);
       emit(MOV(component(sources[0], 7),
-               fs_reg(0xffff)))->force_writemask_all = true;
+               fs_reg(0xffffu)))->force_writemask_all = true;
    }
 
    /* Set the surface read offset. */