src/render/direct3d11/SDL_render_d3d11.c
changeset 8969 7fb90df60b99
parent 8755 f2fc45874b9c
child 9158 8fa5ff95c410
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.c	Mon Jun 30 17:22:08 2014 -0700
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.c	Thu Jul 03 10:22:12 2014 -0700
     1.3 @@ -363,7 +363,7 @@
     1.4  
     1.5      float4 main(PixelShaderInput input) : SV_TARGET
     1.6      {
     1.7 -        const float3 offset = {-0.0625, -0.5, -0.5};
     1.8 +        const float3 offset = {-0.0627451017, -0.501960814, -0.501960814};
     1.9          const float3 Rcoeff = {1.164,  0.000,  1.596};
    1.10          const float3 Gcoeff = {1.164, -0.391, -0.813};
    1.11          const float3 Bcoeff = {1.164,  2.018,  0.000};
    1.12 @@ -387,12 +387,12 @@
    1.13  */
    1.14  #if defined(D3D11_USE_SHADER_MODEL_4_0_level_9_1)
    1.15  static const DWORD D3D11_PixelShader_YUV[] = {
    1.16 -    0x43425844, 0x04e69cba, 0x74ce6dd2, 0x7fcf84cb, 0x3003d677, 0x00000001,
    1.17 +    0x43425844, 0x2321c6c6, 0xf14df2d1, 0xc79d068d, 0x8e672abf, 0x00000001,
    1.18      0x000005e8, 0x00000006, 0x00000038, 0x000001dc, 0x000003bc, 0x00000438,
    1.19      0x00000540, 0x000005b4, 0x396e6f41, 0x0000019c, 0x0000019c, 0xffff0200,
    1.20      0x0000016c, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
    1.21      0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0200, 0x05000051,
    1.22 -    0xa00f0000, 0xbd800000, 0xbf000000, 0xbf000000, 0x3f800000, 0x05000051,
    1.23 +    0xa00f0000, 0xbd808081, 0xbf008081, 0xbf008081, 0x3f800000, 0x05000051,
    1.24      0xa00f0001, 0x3f94fdf4, 0x3fcc49ba, 0x00000000, 0x00000000, 0x05000051,
    1.25      0xa00f0002, 0x3f94fdf4, 0xbec83127, 0xbf5020c5, 0x00000000, 0x05000051,
    1.26      0xa00f0003, 0x3f94fdf4, 0x400126e9, 0x00000000, 0x00000000, 0x0200001f,
    1.27 @@ -419,7 +419,7 @@
    1.28      0x00000001, 0x00101046, 0x00000001, 0x00107e46, 0x00000002, 0x00106000,
    1.29      0x00000000, 0x05000036, 0x00100042, 0x00000000, 0x0010000a, 0x00000001,
    1.30      0x0a000000, 0x00100072, 0x00000000, 0x00100246, 0x00000000, 0x00004002,
    1.31 -    0xbd800000, 0xbf000000, 0xbf000000, 0x00000000, 0x0a00000f, 0x00100012,
    1.32 +    0xbd808081, 0xbf008081, 0xbf008081, 0x00000000, 0x0a00000f, 0x00100012,
    1.33      0x00000001, 0x00100086, 0x00000000, 0x00004002, 0x3f94fdf4, 0x3fcc49ba,
    1.34      0x00000000, 0x00000000, 0x0a000010, 0x00100022, 0x00000001, 0x00100246,
    1.35      0x00000000, 0x00004002, 0x3f94fdf4, 0xbec83127, 0xbf5020c5, 0x00000000,
    1.36 @@ -453,12 +453,12 @@
    1.37  };
    1.38  #elif defined(D3D11_USE_SHADER_MODEL_4_0_level_9_3)
    1.39  static const DWORD D3D11_PixelShader_YUV[] = {
    1.40 -    0x43425844, 0xe6d969fc, 0x63cac33c, 0xa4926502, 0x5d788135, 0x00000001,
    1.41 +    0x43425844, 0x6ede7360, 0x45ff5f8a, 0x34ac92ba, 0xb865f5e0, 0x00000001,
    1.42      0x000005c0, 0x00000006, 0x00000038, 0x000001b4, 0x00000394, 0x00000410,
    1.43      0x00000518, 0x0000058c, 0x396e6f41, 0x00000174, 0x00000174, 0xffff0200,
    1.44      0x00000144, 0x00000030, 0x00300000, 0x00300000, 0x00300000, 0x00240003,
    1.45      0x00300000, 0x00000000, 0x00010001, 0x00020002, 0xffff0201, 0x05000051,
    1.46 -    0xa00f0000, 0xbd800000, 0xbf000000, 0x3f800000, 0x00000000, 0x05000051,
    1.47 +    0xa00f0000, 0xbd808081, 0xbf008081, 0x3f800000, 0x00000000, 0x05000051,
    1.48      0xa00f0001, 0x3f94fdf4, 0x3fcc49ba, 0x00000000, 0x400126e9, 0x05000051,
    1.49      0xa00f0002, 0x3f94fdf4, 0xbec83127, 0xbf5020c5, 0x00000000, 0x0200001f,
    1.50      0x80000000, 0xb0030000, 0x0200001f, 0x80000000, 0xb00f0001, 0x0200001f,
    1.51 @@ -483,7 +483,7 @@
    1.52      0x09000045, 0x001000f2, 0x00000001, 0x00101046, 0x00000001, 0x00107e46,
    1.53      0x00000002, 0x00106000, 0x00000000, 0x05000036, 0x00100042, 0x00000000,
    1.54      0x0010000a, 0x00000001, 0x0a000000, 0x00100072, 0x00000000, 0x00100246,
    1.55 -    0x00000000, 0x00004002, 0xbd800000, 0xbf000000, 0xbf000000, 0x00000000,
    1.56 +    0x00000000, 0x00004002, 0xbd808081, 0xbf008081, 0xbf008081, 0x00000000,
    1.57      0x0a00000f, 0x00100012, 0x00000001, 0x00100086, 0x00000000, 0x00004002,
    1.58      0x3f94fdf4, 0x3fcc49ba, 0x00000000, 0x00000000, 0x0a000010, 0x00100022,
    1.59      0x00000001, 0x00100246, 0x00000000, 0x00004002, 0x3f94fdf4, 0xbec83127,