Bug 76978 - glBlendFuncSeparatei (IrisPro with Mesa DRI / 3.0 Mesa 10.0.1)
Summary: glBlendFuncSeparatei (IrisPro with Mesa DRI / 3.0 Mesa 10.0.1)
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 10.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 05:32 UTC by Branimir Karadzic
Modified: 2014-08-11 03:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Branimir Karadzic 2014-04-03 05:32:54 UTC
Mesa reports availability of ARB_draw_buffers_blend but glBlendFuncSeparatei fails with GL_INVALID_OPERATION.

HW is BrixPro with i7-4770R with SteamOS (Mesa DRI / 3.0 Mesa 10.0.1).

To reproduce bug:

	git clone git://github.com/bkaradzic/bx.git
	git clone git://github.com/bkaradzic/bgfx.git
	cd bgfx
	../bx/tools/linux/bin/premake4 --file=premake/premake4.lua --gcc=linux-gcc gmake
	make -C .build/projects/gmake-linux config=debug64 example-19-oit
	cd examples/runtime
	../../.build/linux64_gcc/bin/example-18-oitDebug

Switch to MRT option, and you will get (MESA_DEBUG=verbose):
"Mesa: User error: GL_INVALID_OPERATION in unsupported function called (unsupported extension or deprecated function?)"
Comment 1 Iago Toral 2014-04-03 09:58:11 UTC
(In reply to comment #0)
> Mesa reports availability of ARB_draw_buffers_blend but glBlendFuncSeparatei
> fails with GL_INVALID_OPERATION.
> 
> HW is BrixPro with i7-4770R with SteamOS (Mesa DRI / 3.0 Mesa 10.0.1).
> 
> To reproduce bug:
> 
> 	git clone git://github.com/bkaradzic/bx.git
> 	git clone git://github.com/bkaradzic/bgfx.git
> 	cd bgfx
> 	../bx/tools/linux/bin/premake4 --file=premake/premake4.lua --gcc=linux-gcc

Should be:
../bx/tools/bin/linux/premake4 --file=premake/premake4.lua --gcc=linux-gcc

> gmake
> 	make -C .build/projects/gmake-linux config=debug64 example-19-oit
> 	cd examples/runtime
> 	../../.build/linux64_gcc/bin/example-18-oitDebug
> 
> Switch to MRT option, and you will get (MESA_DEBUG=verbose):
> "Mesa: User error: GL_INVALID_OPERATION in unsupported function called
> (unsupported extension or deprecated function?)"

It looks like the i965 driver does not provide an implementation for ctx->Driver.BlendFuncSeparate. I am not sure what are the requirements for the Xserver to advertise the extension though.
Comment 2 Matt Turner 2014-08-11 03:15:16 UTC
Likely fixed by commit 76b11d15:

http://cgit.freedesktop.org/mesa/mesa/commit/?id=76b11d15d36db9e83b36efe469c27d68389bb627

I'm marking as fixed, but please reopen if it's not.


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.