Bug 34321 - The ARB_fragment_program subset of ARB_draw_buffers not implemented
Summary: The ARB_fragment_program subset of ARB_draw_buffers not implemented
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
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:


Attachments

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:
piglit/arb_color_buffer_float-mrt

softpipe with ARB_color_buffer_float and ARB_texture_float support, which is required for the piglit test, can be found in this branch:
http://cgit.freedesktop.org/~mareko/mesa/?h=floating2
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>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.