[Mesa-dev] [PATCH] radeonsi: Enable GLSL 4.30 and therefore OpenGL 4.3

Nicolai Hähnle nhaehnle at gmail.com
Fri Apr 15 00:03:17 UTC 2016


The patch is fine, of course, but for pragmatic reasons we need to wait 
until the Unreal Engine problem is resolved. E.g. Elemental Demo (but 
really anything UE4) fails with

LowLevelFatalError 
[File:C:\UnrealEngine\4.5-src\Engine\Source\Runtime\OpenGLDrv\Private\OpenGLShaders.cpp] 
[Line: 71]
Failed to compile shader. Compile log:
0:9(31): error: struct `TEXCOORD0' previously defined

... if it detects and uses the GL 4.3 render path.

Cheers,
Nicolai

On 14.04.2016 17:42, Mike Lothian wrote:
> This is the last necessary bit for OpenGL 4.3 support, All
> driver-specific functionality has been implemented as part of
> extensions.
> ---
>
> Was testing Bas's patches with Middle-Earth: Shadow of Mordor but
> needed this to expose OpenGL 4.3
>
>   src/gallium/drivers/radeonsi/si_pipe.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
> index 94bd666..b789d4c 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -338,7 +338,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
>   		return HAVE_LLVM >= 0x0309 ? 4 : 0;
>
>   	case PIPE_CAP_GLSL_FEATURE_LEVEL:
> -		return HAVE_LLVM >= 0x0309 ? 420 :
> +		return HAVE_LLVM >= 0x0309 ? 430 :
>   		       HAVE_LLVM >= 0x0307 ? 410 : 330;
>
>   	case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE:
>


More information about the mesa-dev mailing list