summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-03-19 15:12:01 +0200
committerFrancisco Jerez <currojerez@riseup.net>2015-05-04 15:05:20 +0300
commitc97a7705ea61f0d1e78bcfe91c0c8e05c79b45cb (patch)
tree5c56d5fb53aa82e2e85fbad7d65bb15bce8ed0c3 /src/mesa/drivers/dri/i965/brw_fs_generator.cpp
parentac747ca5f72332b1ff97041cc808be551596a26f (diff)
downloadexternal_mesa3d-c97a7705ea61f0d1e78bcfe91c0c8e05c79b45cb.zip
external_mesa3d-c97a7705ea61f0d1e78bcfe91c0c8e05c79b45cb.tar.gz
external_mesa3d-c97a7705ea61f0d1e78bcfe91c0c8e05c79b45cb.tar.bz2
i965: Reorder sources of the untyped atomic opcode.
This is consistent with the untyped surface read opcode. From now on all typed and untyped surface access opcodes will follow the same pattern: src[0] will be the message payload, src[1] will be the surface index and src[2] will be a control immediate (atomic operation for atomic opcodes and number of vector components for surface read and write opcodes). Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_generator.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 876fdd2..efe05e3 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -2017,9 +2017,9 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
case SHADER_OPCODE_UNTYPED_ATOMIC:
assert(src[1].file == BRW_IMMEDIATE_VALUE &&
src[2].file == BRW_IMMEDIATE_VALUE);
- brw_untyped_atomic(p, dst, src[0], src[2], src[1].dw1.ud,
+ brw_untyped_atomic(p, dst, src[0], src[1], src[2].dw1.ud,
inst->mlen, !inst->dst.is_null());
- brw_mark_surface_used(prog_data, src[2].dw1.ud);
+ brw_mark_surface_used(prog_data, src[1].dw1.ud);
break;
case SHADER_OPCODE_UNTYPED_SURFACE_READ: