Bug 34321 - The ARB_fragment_program subset of ARB_draw_buffers not implemented
The ARB_fragment_program subset of ARB_draw_buffers not implemented
Product: Mesa
Classification: Unclassified
Component: Mesa core
x86 (IA32) Linux (All)
: medium major
Assigned To: mesa-dev
Depends on:
Blocks: 36182
  Show dependency treegraph
Reported: 2011-02-15 22:19 UTC by Marek Olšák
Modified: 2011-04-13 18:10 UTC (History)
5 users (show)

See Also:
i915 platform:
i915 features:


Note You need to log in before you can comment on or make changes to this bug.
Description Marek Olšák 2011-02-15 22:19:42 UTC
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[0], fragment.texcoord[0];

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:
Comment 1 Eric Anholt 2011-04-13 18:10:14 UTC
commit 28cec9e832b716b84c11ddabfcee74e0daf6ec49
Author: Eric Anholt <eric@anholt.net>
Date:   Wed Apr 13 11:09:55 2011 -0700

    mesa: Add support for the ARB_fragment_program part of ARB_draw_buffers.
    Fixes fbo-drawbuffers-arbfp.
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34321
    Reviewed-by: Brian Paul <brianp@vmware.com>
    Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>