diff options
author | Kenneth Graunke <[email protected]> | 2014-04-18 10:22:13 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-05-01 00:24:04 -0700 |
commit | f1cd9fee53f743ed4621c2541f0058a874b4bea1 (patch) | |
tree | f81798b34dc4c6d1fbf17ab71d35a9c10cd93082 /src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | |
parent | 4d9c27df4539a96255c98a183c93685ee0e42df6 (diff) |
i965/fs: Set fs_inst::header_present for untyped atomics/surface reads.
The brw_eu_emit.c code manually forces the header present bit when
used in align1 (scalar) mode. So, this has no effect currently.
However, it is nice to have fs_inst::header_present reflect reality.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77221
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_visitor.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index aa177cbd276..d2dc5fa4e1b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -2414,6 +2414,7 @@ fs_visitor::emit_untyped_atomic(unsigned atomic_op, unsigned surf_index, atomic_op, surf_index); inst->base_mrf = 0; inst->mlen = mlen; + inst->header_present = true; emit(inst); } @@ -2448,6 +2449,7 @@ fs_visitor::emit_untyped_surface_read(unsigned surf_index, fs_reg dst, fs_inst(SHADER_OPCODE_UNTYPED_SURFACE_READ, dst, surf_index); inst->base_mrf = 0; inst->mlen = mlen; + inst->header_present = true; emit(inst); } |