Bug 36083 - Feature wish: EXT_gpu_shader4
Summary: Feature wish: EXT_gpu_shader4
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium enhancement
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 09:25 UTC by s3734770
Modified: 2014-08-19 17:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
First start (2.04 KB, patch)
2011-04-16 00:26 UTC, s3734770
Details | Splinter Review

Description s3734770 2011-04-08 09:25:54 UTC
I would like to have the EXT_gpu_shader4 implemented into mesa for the following reasons:
 - gl_InstanceID is defined for GLSL then
 - Integers for shaders
 - Introducing of geometry shaders to run gs demos

as a spin-off, GL_EXT_geometry_shader4 would be implemented

Implementing this extension is hard, but please do it. Modern game engines are depending on it, engines like Unigine.
Comment 1 s3734770 2011-04-16 00:26:01 UTC
Created attachment 45694 [details] [review]
First start

This patch does a first step towards implementing gpu_shader4: gl_InstanceID

Even if it's a small change, please review the patch. It also fixes a issue with Unigine Heaven.
Comment 2 Marek Olšák 2011-04-16 00:59:00 UTC
If you are fixing a driver by this, let's just disable the extension until gl_InstanceID is supported.

I can disable it for r600g if you like.
Comment 3 s3734770 2011-04-16 01:14:32 UTC
i'm not fixing a driver, 
Unigine Heaven uses EXT_gpu_shader4 without checking for it.

So disabling an extension would not solve the problem.

I'm serious. This is the start of implementing EXT_gpu_shader4 in mesa.
Comment 4 Marek Olšák 2011-04-16 01:24:51 UTC
No, Heaven doesn't use EXT_gpu_shader4. Or maybe it does, but it doesn't require it if the extension is not exposed by a driver. Heaven is only incorrectly using GL_ARB_draw_instanced.

Note that Heaven works on r300g and r600g has a very similar extension list, so it should work too.
Comment 5 s3734770 2011-04-16 01:29:36 UTC
But that's not Topic of this bug report.
Should I open an other one to fix the Unigine Heaven problem?

This bug report should stay for gpu_shader4 issues
Comment 6 Tapani Pälli 2014-08-19 10:27:59 UTC
AFAIK the features listed in comment #1 exist, please reopen if not.
Comment 7 Matt Turner 2014-08-19 17:14:19 UTC
Well, neither EXT_gpu_shader4 nor GL_EXT_geometry_shader4 exist, but GL 3.2 has the features he mentions.


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.