Hi, I have noticed that the parser for ARB_vertex/fragment_program doesn't implement ARB_draw_buffers. result.color[n] should be allowed if "OPTION ARB_draw_buffers;" is specified. However, when I try to use it like this:
> MOV result.color, fragment.texcoord;
I get this message:
> Compiler Error (pos=46 line=-1): line 3, char 17: error: syntax error, unexpected '[', expecting ','
I was looking at the code of the parser, but I don't understand a thing in it. This bug can be reproduced with:
softpipe with ARB_color_buffer_float and ARB_texture_float support, which is required for the piglit test, can be found in this branch:
Author: Eric Anholt <firstname.lastname@example.org>
Date: Wed Apr 13 11:09:55 2011 -0700
mesa: Add support for the ARB_fragment_program part of ARB_draw_buffers.
Reviewed-by: Brian Paul <email@example.com>
Reviewed-by: Ian Romanick <firstname.lastname@example.org>
on Mar 31, 2017 at 00:35:55.
(provided by the Example extension).