glamor: fix XVideo run with GLES
For now, it sets .version=120, which prevents shader from compiling on ES. We just force version of shaders to be always 100 on ES, because we use only 120 shaders on ES anyway, and all shaders works. Signed-off-by: Konstantin Pugin <ria.freelander@gmail.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Emma Anholt <emma@anholt.net>
This commit is contained in:
parent
05b8401eeb
commit
dcba460af3
|
@ -283,6 +283,11 @@ glamor_build_program(ScreenPtr screen,
|
||||||
gpu_shader4 = TRUE;
|
gpu_shader4 = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* For now, fix shader version to GLES as 100. We will fall with 130 shaders
|
||||||
|
* in previous check due to forcibly set 120 glsl for GLES. But this patch
|
||||||
|
* makes xv shaders to work */
|
||||||
|
if(version && glamor_priv->is_gles)
|
||||||
|
version = 100;
|
||||||
|
|
||||||
vs_vars = vs_location_vars(locations);
|
vs_vars = vs_location_vars(locations);
|
||||||
fs_vars = fs_location_vars(locations);
|
fs_vars = fs_location_vars(locations);
|
||||||
|
|
Loading…
Reference in New Issue