nvc0/ir: fix xy confusion typo in readTessCoord
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 12 Oct 2011 18:44:53 +0000 (20:44 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:37 +0000 (23:00 +0200)
src/gallium/drivers/nvc0/codegen/nv50_ir_lowering_nvc0.cpp

index b6a155ca9c85a7941aab7edbbbe8175ee240a2e1..7e7ae45cc09015c6f42c07c8b3706d8fd7e3da3b 100644 (file)
@@ -475,7 +475,7 @@ NVC0LoweringPass::readTessCoord(LValue *dst, int c)
    if (x)
       bld.mkFetch(x, TYPE_F32, FILE_SHADER_OUTPUT, 0x2f0, NULL, laneid);
    if (y)
-      bld.mkFetch(x, TYPE_F32, FILE_SHADER_OUTPUT, 0x2f4, NULL, laneid);
+      bld.mkFetch(y, TYPE_F32, FILE_SHADER_OUTPUT, 0x2f4, NULL, laneid);
 
    if (c == 2) {
       bld.mkOp2(OP_ADD, TYPE_F32, dst, x, y);