[Piglit] [PATCH 4/4] fbo-drawbuffers: Port to ES2 w/NV_draw_buffers and NV_fbo_color_attachments
Ian Romanick
idr at freedesktop.org
Tue Oct 4 13:59:33 PDT 2011
On 10/04/2011 01:39 PM, Eric Anholt wrote:
> On Mon, 3 Oct 2011 11:40:24 -0700, "Ian Romanick"<idr at freedesktop.org> wrote:
>> From: Ian Romanick<ian.d.romanick at intel.com>
>>
>> Signed-off-by: Ian Romanick<ian.d.romanick at intel.com>
>> ---
>> tests/fbo/CMakeLists.gles2.txt | 11 +++++
>> tests/fbo/fbo-drawbuffers.c | 83 +++++++++++++++++++++++++++++++++++++++-
>> 2 files changed, 93 insertions(+), 1 deletions(-)
>> create mode 100644 tests/fbo/CMakeLists.gles2.txt
>
> So, 83 lines out of a 138-line test (counting copyright header) just to
> share code? I think a separate test would have been better here.
That's fair. All of the extra code comes from having both GLSL (for
ES2) and fixed-function (for desktop) paths. The other option would be
to make the test always use GLSL. I don't know of any hardware that
supports MRT and doesn't support GLSL.
I'd actually prefer to do that.
More information about the Piglit
mailing list