radeonsi: Allow longer intrinsic names
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sun, 27 Oct 2013 18:36:07 +0000 (19:36 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 30 Oct 2013 23:40:06 +0000 (16:40 -0700)
Fixes a boat load of Piglit tests for me, which crashed like fdo#70913
before.

Thanks to Michel Dänzer for the tip.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70913
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/radeonsi_shader.c

index 9f81a7b420b4d159a785e37e19bae53df4c17b76..dff8be0f0e54d5293b527194399ce8e25d2bbfb9 100644 (file)
@@ -1425,7 +1425,7 @@ static void build_tex_intrinsic(const struct lp_build_tgsi_action * action,
                                struct lp_build_emit_data * emit_data)
 {
        struct lp_build_context * base = &bld_base->base;
-       char intr_name[23];
+       char intr_name[127];
 
        sprintf(intr_name, "%sv%ui32", action->intr_name,
                LLVMGetVectorSize(LLVMTypeOf(emit_data->args[0])));