from WINE 1.3.19 announcement
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.
Ken had done some work on enabling this extension in the i965 driver, so I'm reassigning it to him for "someday."
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.
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.
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.
Excellent. Glad to hear it's working!
This is upstream in master now, so I'm closing the report.
on Mar 28, 2017 at 15:57:55.
(provided by the Example extension).