[Mesa-dev] [PATCH 4/7] i965/fs: Add reads_reg() and writes_flag() to fs_inst.
Eric Anholt
eric at anholt.net
Tue Oct 22 23:06:41 CEST 2013
Matt Turner <mattst88 at gmail.com> writes:
> ---
> src/mesa/drivers/dri/i965/brw_fs.cpp | 16 ++++++++++++++++
> src/mesa/drivers/dri/i965/brw_fs.h | 3 +++
> 2 files changed, 19 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
> index 77b898b..9b56764 100644
> --- a/src/mesa/drivers/dri/i965/brw_fs.cpp
> +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
> @@ -730,6 +730,22 @@ fs_inst::regs_read(fs_visitor *v, int arg)
> return 1;
> }
>
> +bool
> +fs_inst::reads_flag()
> +{
> + if (predicate)
> + return true;
> + return false;
> +}
> +
> +bool
> +fs_inst::writes_flag()
> +{
> + if (conditional_mod)
> + return true;
> + return false;
> +}
FS_OPCODE_MOV_DISPATCH_TO_FLAGS changes a flag reg. I didn't come up
with any other readers off the top of my head.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131022/942111b0/attachment.pgp>
More information about the mesa-dev
mailing list