aboutsummaryrefslogtreecommitdiff
path: root/system/shaders/yuv2rgb_d3d.fx
diff options
context:
space:
mode:
authorAnton Fedchin <anightik@gmail.com>2019-01-27 21:31:24 +0300
committerAnton Fedchin <anightik@gmail.com>2019-01-31 18:46:52 +0300
commit724d51ab9cd64d036569753032609881ac6de47f (patch)
tree242ce464294de5d4d8540ce87ffc72525b91f952 /system/shaders/yuv2rgb_d3d.fx
parentbdfd3981fd3f5bd6a47304ed7a2efdb782999517 (diff)
[videoplayer] winrenderer: do scaling in output shader instead of yuv2rgb, this fixes the issue with green border with nv12 texture.
Diffstat (limited to 'system/shaders/yuv2rgb_d3d.fx')
-rw-r--r--system/shaders/yuv2rgb_d3d.fx10
1 files changed, 1 insertions, 9 deletions
diff --git a/system/shaders/yuv2rgb_d3d.fx b/system/shaders/yuv2rgb_d3d.fx
index eef7f16f01..0500526a99 100644
--- a/system/shaders/yuv2rgb_d3d.fx
+++ b/system/shaders/yuv2rgb_d3d.fx
@@ -32,16 +32,8 @@ SamplerState YUVSampler : IMMUTABLE
{
AddressU = CLAMP;
AddressV = CLAMP;
- Filter = MIN_MAG_MIP_LINEAR;
-};
-#ifdef NV12_SNORM_UV
-SamplerState UVSamplerSNORM : IMMUTABLE
-{
- AddressU = CLAMP;
- AddressV = CLAMP;
Filter = MIN_MAG_MIP_POINT;
};
-#endif
struct VS_INPUT
{
@@ -93,7 +85,7 @@ float4 YUV2RGB(VS_OUTPUT In) : SV_TARGET
#elif defined(XBMC_NV12)
float4 YUV = float4(g_Texture[0].Sample(YUVSampler, In.TextureY).r
#if defined(NV12_SNORM_UV)
- , unormUV(g_Texture[1].Sample(UVSamplerSNORM, In.TextureUV).rg)
+ , unormUV(g_Texture[1].Sample(YUVSampler, In.TextureUV).rg)
#else
, g_Texture[1].Sample(YUVSampler, In.TextureUV).rg
#endif