diff options
author | Francisco Jerez <currojerez@riseup.net> | 2016-09-07 13:38:20 -0700 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-09-14 14:50:53 -0700 |
commit | 69570bbad876bb9da609c3b651aacda28cecc542 (patch) | |
tree | 11f5930c4426d05b013ab874e489a3c8a1d51c7a /src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp | |
parent | d28cfa35fec75c367b940ff829ba8eaa035fbd22 (diff) | |
download | external_mesa3d-69570bbad876bb9da609c3b651aacda28cecc542.zip external_mesa3d-69570bbad876bb9da609c3b651aacda28cecc542.tar.gz external_mesa3d-69570bbad876bb9da609c3b651aacda28cecc542.tar.bz2 |
i965/fs: Replace fs_inst::regs_written with ::size_written field in bytes.
The previous regs_written field can be recovered by rewriting each
rvalue reference of regs_written like 'x = i.regs_written' to 'x =
DIV_ROUND_UP(i.size_written, reg_unit)', and each lvalue reference
like 'i.regs_written = x' to 'i.size_written = x * reg_unit'.
For the same reason as in the previous patches, this doesn't attempt
to be particularly clever about simplifying the result in the interest
of keeping the rather lengthy patch as obvious as possible. I'll come
back later to clean up any ugliness introduced here.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp b/src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp index 8ba7bc5..f71c6ee 100644 --- a/src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp +++ b/src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp @@ -281,7 +281,7 @@ TEST_F(cmod_propagation_test, intervening_dest_write) fs_reg zero(brw_imm_f(0.0f)); bld.ADD(offset(dest, bld, 2), src0, src1); bld.emit(SHADER_OPCODE_TEX, dest, src2) - ->regs_written = 4; + ->size_written = 4 * REG_SIZE; bld.CMP(bld.null_reg_f(), offset(dest, bld, 2), zero, BRW_CONDITIONAL_GE); /* = Before = |