r600: handle the non-TXF_LZ support path.
authorDave Airlie <airlied@redhat.com>
Mon, 21 Aug 2017 01:05:31 +0000 (11:05 +1000)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 11 Sep 2017 00:10:24 +0000 (02:10 +0200)
it appears that texcoord.z/w will be 0 in all cases already,
so just put them into the vbo always.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 72553292f59aa2559f2c6dee099ebe0728bb286d..a5678faf89b1faa3bac914bbe34f5afe48e509fb 100644 (file)
@@ -267,10 +267,10 @@ void r600_draw_rectangle(struct blitter_context *blitter,
                memcpy(vb+20, attrib->color, sizeof(float)*4);
                break;
        case UTIL_BLITTER_ATTRIB_TEXCOORD_XYZW:
+       case UTIL_BLITTER_ATTRIB_TEXCOORD_XY:
                vb[6] = vb[14] = vb[22] = attrib->texcoord.z;
                vb[7] = vb[15] = vb[23] = attrib->texcoord.w;
                /* fall through */
-       case UTIL_BLITTER_ATTRIB_TEXCOORD_XY:
                vb[4] = attrib->texcoord.x1;
                vb[5] = attrib->texcoord.y1;
                vb[12] = attrib->texcoord.x1;