Commit d8224118 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

d3d: Make the INTZ test more reliable.

parent dbd87863
......@@ -1706,10 +1706,10 @@ static void intz_test(IDirect3DDevice8 *device)
}
quad[] =
{
{ -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f},
{ 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f},
{ -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{ 1.0f, -1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f},
{ -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.5f},
{ 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.5f},
{ -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f},
{ 1.0f, -1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.5f},
};
struct
{
......@@ -1718,14 +1718,14 @@ static void intz_test(IDirect3DDevice8 *device)
}
expected_colors[] =
{
{400, 60, D3DCOLOR_ARGB(0x00, 0x9f, 0xff, 0x00)},
{560, 180, D3DCOLOR_ARGB(0x00, 0xdf, 0x55, 0x00)},
{560, 300, D3DCOLOR_ARGB(0x00, 0xdf, 0x66, 0x00)},
{400, 420, D3DCOLOR_ARGB(0x00, 0x9f, 0xb6, 0x00)},
{240, 420, D3DCOLOR_ARGB(0x00, 0x60, 0x6d, 0x00)},
{ 80, 300, D3DCOLOR_ARGB(0x00, 0x20, 0x33, 0x00)},
{ 80, 180, D3DCOLOR_ARGB(0x00, 0x20, 0x55, 0x00)},
{240, 60, D3DCOLOR_ARGB(0x00, 0x60, 0xff, 0x00)},
{ 80, 100, D3DCOLOR_ARGB(0x00, 0x20, 0x40, 0x00)},
{240, 100, D3DCOLOR_ARGB(0x00, 0x60, 0xbf, 0x00)},
{400, 100, D3DCOLOR_ARGB(0x00, 0x9f, 0x40, 0x00)},
{560, 100, D3DCOLOR_ARGB(0x00, 0xdf, 0xbf, 0x00)},
{ 80, 450, D3DCOLOR_ARGB(0x00, 0x20, 0x40, 0x00)},
{240, 450, D3DCOLOR_ARGB(0x00, 0x60, 0xbf, 0x00)},
{400, 450, D3DCOLOR_ARGB(0x00, 0x9f, 0x40, 0x00)},
{560, 450, D3DCOLOR_ARGB(0x00, 0xdf, 0xbf, 0x00)},
};
IDirect3DSurface8 *original_ds, *original_rt, *rt;
......
......@@ -11099,7 +11099,7 @@ static void intz_test(IDirect3DDevice9 *device)
0x02000001, 0x80010001, 0x80e40000, /* mov r1.x, r0 */
0x03010042, 0x800f0000, 0xb0e40000, 0xa0e40800, /* texldp r0, t0, s0 */
0x02000001, 0x80020001, 0x80000000, /* mov r1.y, r0.x */
0x02000001, 0x800f0800, 0x80e40001, /* mov 0C0, r1 */
0x02000001, 0x800f0800, 0x80e40001, /* mov oC0, r1 */
0x0000ffff, /* end */
};
struct
......@@ -11109,10 +11109,10 @@ static void intz_test(IDirect3DDevice9 *device)
}
quad[] =
{
{ -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f},
{ 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f},
{ -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{ 1.0f, -1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f},
{ -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.5f},
{ 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.5f},
{ -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.5f},
{ 1.0f, -1.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0.5f},
};
struct
{
......@@ -11121,14 +11121,14 @@ static void intz_test(IDirect3DDevice9 *device)
}
expected_colors[] =
{
{400, 60, D3DCOLOR_ARGB(0x00, 0x9f, 0xff, 0x00)},
{560, 180, D3DCOLOR_ARGB(0x00, 0xdf, 0x55, 0x00)},
{560, 300, D3DCOLOR_ARGB(0x00, 0xdf, 0x66, 0x00)},
{400, 420, D3DCOLOR_ARGB(0x00, 0x9f, 0xb6, 0x00)},
{240, 420, D3DCOLOR_ARGB(0x00, 0x60, 0x6d, 0x00)},
{ 80, 300, D3DCOLOR_ARGB(0x00, 0x20, 0x33, 0x00)},
{ 80, 180, D3DCOLOR_ARGB(0x00, 0x20, 0x55, 0x00)},
{240, 60, D3DCOLOR_ARGB(0x00, 0x60, 0xff, 0x00)},
{ 80, 100, D3DCOLOR_ARGB(0x00, 0x20, 0x40, 0x00)},
{240, 100, D3DCOLOR_ARGB(0x00, 0x60, 0xbf, 0x00)},
{400, 100, D3DCOLOR_ARGB(0x00, 0x9f, 0x40, 0x00)},
{560, 100, D3DCOLOR_ARGB(0x00, 0xdf, 0xbf, 0x00)},
{ 80, 450, D3DCOLOR_ARGB(0x00, 0x20, 0x40, 0x00)},
{240, 450, D3DCOLOR_ARGB(0x00, 0x60, 0xbf, 0x00)},
{400, 450, D3DCOLOR_ARGB(0x00, 0x9f, 0x40, 0x00)},
{560, 450, D3DCOLOR_ARGB(0x00, 0xdf, 0xbf, 0x00)},
};
IDirect3DSurface9 *original_ds, *original_rt, *rt;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment