mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests/shader-runner: Call each runner only once.
If the runners require multiple calls to run_shader_tests() for different shader model ranges, these are moved inside the sole runner call. For the same reason, the trace() messages are also moved inside the runner calls.
This commit is contained in:
committed by
Alexandre Julliard
parent
79de3ec766
commit
671f4ec2b2
Notes:
Alexandre Julliard
2024-01-24 22:53:52 +01:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/514
@@ -27,6 +27,12 @@
|
||||
#include "shader_runner.h"
|
||||
#include "vkd3d_test.h"
|
||||
|
||||
#ifdef VKD3D_CROSSTEST
|
||||
static const char HLSL_COMPILER[] = "d3dcompiler47.dll";
|
||||
#else
|
||||
static const char HLSL_COMPILER[] = "vkd3d-shader";
|
||||
#endif
|
||||
|
||||
struct d3d9_resource
|
||||
{
|
||||
struct resource r;
|
||||
@@ -534,6 +540,8 @@ void run_shader_tests_d3d9(void)
|
||||
struct d3d9_shader_runner runner;
|
||||
HMODULE d3d9_module;
|
||||
|
||||
trace("Compiling SM2-SM3 shaders with %s and executing with d3d9.dll\n", HLSL_COMPILER);
|
||||
|
||||
d3d9_module = LoadLibraryA("d3d9.dll");
|
||||
if (d3d9_module)
|
||||
{
|
||||
|
Reference in New Issue
Block a user