nv30: fix some s3tc layout issues
[mesa.git] / src / gallium / drivers / nouveau / codegen / nv50_ir_build_util.h
index 8f3bf77949cebe7ddff3e48e8b3f6b459db45d6b..d171f64d9a17718ff2705937ff167d98c4dc9074 100644 (file)
@@ -295,7 +295,7 @@ BuildUtil::mkOp3v(operation op, DataType ty, Value *dst,
 inline LValue *
 BuildUtil::mkLoadv(DataType ty, Symbol *mem, Value *ptr)
 {
-   LValue *dst = getScratch();
+   LValue *dst = getScratch(typeSizeof(ty));
    mkLoad(ty, dst, mem, ptr);
    return dst;
 }