nvc0: values for undefined outputs must have file GPR

This commit is contained in:
Christoph Bumiller 2011-02-20 15:10:02 +01:00
parent 1579017b08
commit 410a13c5ce
1 changed files with 4 additions and 7 deletions

View File

@ -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 *