Bug 36987 - Intel GMA 4500 ARB_shader_texture_lod support
Intel GMA 4500 ARB_shader_texture_lod support
Status: RESOLVED FIXED
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965
git
x86 (IA32) Linux (All)
: medium enhancement
Assigned To: Kenneth Graunke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-08 20:13 UTC by Md Imam Hossain
Modified: 2011-06-19 02:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Md Imam Hossain 2011-05-08 20:13:34 UTC
from WINE 1.3.19 announcement
http://www.winehq.org/announce/1.3.19

 wined3d: Enable SM3 if ARB_shader_texture_lod is supported.

From my experiment, if I enable GLSL in WINE then WINE reports Shader Model 3  to program for both Vertex and Fragment shader.

if I disable GLSL in WINE then WINE only reports Shader Model 2. In this case WINE utilises ARB extensions to provide SM2 Direct3D features.

I guess is that, if we have this ARB_shader_texture_lod extension then WINE now provides SM3 without using GLSL.

Thank you.
Comment 1 Ian Romanick 2011-05-17 03:03:26 UTC
Ken had done some work on enabling this extension in the i965 driver, so I'm reassigning it to him for "someday."
Comment 2 Kenneth Graunke 2011-05-17 09:00:52 UTC
Yeah, I was just looking at this yesterday...I really would like to finish it off.  The only thing remaining is how to fake shadow2DGradARB on Gen4-6, since the hardware doesn't have a sample_d_c message.  I basically need to do two things: 1) figure out how to make the sample pre-filtering, and 2) hook it up for a state dependent recompile.

I think Marek wrote some more test cases, so that will be helpful.

Technically I still need to add Gen7 code, too, but that should be trivial.
Comment 3 Kenneth Graunke 2011-06-12 00:15:30 UTC
Finished writing the code; it's available in the 'txd' branch of ~kwg/mesa (my personal repository).

Unfortunately, we have no shadow2DGradARB tests, which is the most complicated part and therefore most likely to be broken.  I'll need to write some tests and fix the inevitable bugs before pushing.

I suspect the Ivybridge support is broken as well; I'm hoping to test/fix that on Monday.
Comment 4 Md Imam Hossain 2011-06-18 21:05:48 UTC
Kenneth Graunke, Thank you very much for implementing this extension for Intel Graphics for Linux.

After some testing,
I came to know more about this extension and it's relationship with WINE.

This extension provides more functionality in OpenGL's GLSL.

Now, WINE actually uses this extension along with GLSL to provide more SM3 functionality on ATI graphics cards, just like WINE provides to nVidia graphics cards with other extensions.

Having this extension on Intel Graphics, now WINE provides more SM3 functionality to Intel graphics as well, just like ATI.

Now, I can play Need for Speed Undercover with full effects by WINE.

Windows provides similar functionality to their Intel Direct3D driver.
Comment 5 Kenneth Graunke 2011-06-19 02:25:57 UTC
Excellent.  Glad to hear it's working!

This is upstream in master now, so I'm closing the report.