[virglrenderer-devel] [PATCH 1/2] shader: fix tg4 offsets vector

Dave Airlie airlied at gmail.com
Fri Jun 15 01:52:05 UTC 2018


From: Dave Airlie <airlied at redhat.com>

just a typo from ivec2->ivec3
---
 src/vrend_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vrend_shader.c b/src/vrend_shader.c
index bbb4ba4..2987d07 100644
--- a/src/vrend_shader.c
+++ b/src/vrend_shader.c
@@ -1860,7 +1860,7 @@ static bool fill_offset_buffer(struct dump_ctx *ctx,
                   get_swiz_char(inst->TexOffsets[0].SwizzleY));
             break;
       case TGSI_TEXTURE_3D:
-         snprintf(offbuf, 120, ", ivec2(floatBitsToInt(temp%d[%d].%c), floatBitsToInt(temp%d[%d].%c), floatBitsToInt(temp%d[%d].%c)",
+         snprintf(offbuf, 120, ", ivec3(floatBitsToInt(temp%d[%d].%c), floatBitsToInt(temp%d[%d].%c), floatBitsToInt(temp%d[%d].%c)",
                   range->first, idx,
                   get_swiz_char(inst->TexOffsets[0].SwizzleX),
                   range->first, idx,
-- 
2.14.3



More information about the virglrenderer-devel mailing list