From: Christoph Bumiller Date: Sun, 20 Feb 2011 14:10:02 +0000 (+0100) Subject: nvc0: values for undefined outputs must have file GPR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=410a13c5ce799fe97a4e4503190d0f66fb2559a3;p=mesa.git nvc0: values for undefined outputs must have file GPR --- diff --git a/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c b/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c index 18ae0e00c41..5e208e8623d 100644 --- a/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c +++ b/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c @@ -133,13 +133,10 @@ struct bld_context { static INLINE ubyte bld_register_file(struct bld_context *bld, struct bld_register *reg) { - if (reg < &bld->avs[0][0]) return NV_FILE_GPR; - else - if (reg < &bld->pvs[0][0]) return NV_FILE_GPR; - else - if (reg < &bld->ovs[0][0]) return NV_FILE_PRED; - else - return NV_FILE_MEM_V; + if (reg >= &bld->pvs[0][0] && + reg < &bld->ovs[0][0]) + return NV_FILE_PRED; + return NV_FILE_GPR; } static INLINE struct nv_value *