[Mesa-dev] [PATCH 2/2] i965: Check reg.nr for BRW_ARF_NULL instead of reg.file.
Kenneth Graunke
kenneth at whitecape.org
Mon Apr 15 23:07:56 PDT 2013
On 04/15/2013 03:53 PM, Matt Turner wrote:
> ---
> src/mesa/drivers/dri/i965/brw_eu_emit.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
> index 704f219..a98892b 100644
> --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
> +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
> @@ -182,7 +182,7 @@ validate_reg(struct brw_instruction *insn, struct brw_reg reg)
> }
>
> if (reg.file == BRW_ARCHITECTURE_REGISTER_FILE &&
> - reg.file == BRW_ARF_NULL)
> + reg.nr == BRW_ARF_NULL)
> return;
>
> assert(reg.hstride >= 0 && reg.hstride < Elements(hstride_for_reg));
Both patches are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
More information about the mesa-dev
mailing list