tests: Mark some tests as requiring shader model 4.0.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-03-07 19:55:44 -06:00 committed by Alexandre Julliard
parent 1f4056125d
commit 721ea8fa60
13 changed files with 34 additions and 2 deletions

View File

@ -1,3 +1,6 @@
[require]
shader model >= 4.0
[pixel shader]
float4 main() : SV_TARGET
{

View File

@ -1,3 +1,6 @@
[require]
shader model >= 4.0
[pixel shader]
float4 main() : SV_TARGET
{

View File

@ -1,5 +1,7 @@
[pixel shader]
[require]
shader model >= 4.0
[pixel shader]
float4 main(uniform int i, uniform uint u, uniform bool b, uniform half h) : sv_target
{
return float4(((float)i) + 1.5, ((float)u) - 2.5, ((float)b) / 2, h);

View File

@ -1,3 +1,6 @@
[require]
shader model >= 4.0
[pixel shader]
float4 main(uniform int i, uniform uint u, uniform bool b, uniform float f) : sv_target

View File

@ -1,3 +1,6 @@
[require]
shader model >= 4.0
[pixel shader]
float4 main(uniform float f, uniform uint u, uniform bool b, uniform half h) : sv_target

View File

@ -1,3 +1,6 @@
[require]
shader model >= 4.0
[pixel shader]
float4 main(uniform float f, uniform int i, uniform bool b, uniform half h) : sv_target

View File

@ -23,6 +23,9 @@ uniform 0 float4 -0.5 6.5 7.5 3.4
draw quad
probe all rgba (6.0, 7.0, -1.0, 3.0) 4
[require]
shader model >= 4.0
[pixel shader]
float4 main(uniform int4 u) : sv_target
{

View File

@ -67,6 +67,9 @@ uniform 0 float4 -1.9 -1.0 2.9 4.0
draw quad
probe all rgba (-1.0, -1.0, 2.0, 4.0)
[require]
shader model >= 4.0
[pixel shader]
void func(inout float4 a)

View File

@ -1,3 +1,6 @@
[require]
shader model >= 4.0
[sampler 0]
filter point point point
address clamp clamp clamp

View File

@ -105,6 +105,7 @@ static void parse_require_directive(struct shader_context *context, const char *
{
static const char *const model_strings[] =
{
[SHADER_MODEL_2_0] = "2.0",
[SHADER_MODEL_4_0] = "4.0",
[SHADER_MODEL_4_1] = "4.1",
[SHADER_MODEL_5_0] = "5.0",
@ -445,6 +446,8 @@ void run_shader_tests(struct shader_context *context, int argc, char **argv, con
char line[256];
FILE *f;
context->minimum_shader_model = SHADER_MODEL_2_0;
for (i = 1; i < argc; ++i)
{
if (argv[i][0] != '-')

View File

@ -25,7 +25,8 @@
enum shader_model
{
SHADER_MODEL_4_0 = 0,
SHADER_MODEL_2_0,
SHADER_MODEL_4_0,
SHADER_MODEL_4_1,
SHADER_MODEL_5_0,
SHADER_MODEL_5_1,

View File

@ -441,6 +441,7 @@ static void d3d11_runner_draw_quad(struct shader_context *c)
static const char *const ps_profiles[] =
{
[SHADER_MODEL_2_0] = "ps_4_0",
[SHADER_MODEL_4_0] = "ps_4_0",
[SHADER_MODEL_4_1] = "ps_4_1",
[SHADER_MODEL_5_0] = "ps_5_0",

View File

@ -58,6 +58,7 @@ static ID3D10Blob *compile_shader(const char *source, enum shader_model shader_m
static const char *const shader_models[] =
{
[SHADER_MODEL_2_0] = "ps_4_0",
[SHADER_MODEL_4_0] = "ps_4_0",
[SHADER_MODEL_4_1] = "ps_4_1",
[SHADER_MODEL_5_0] = "ps_5_0",