You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Rebase against 0b79e2caa6f224fc0da672886c07f4f32dda4682.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From e54feda95d0e88080d118d2079c62f091dffe3e3 Mon Sep 17 00:00:00 2001
|
||||
From a4d9cd0e60613fac787bb65e6a22fb1b24e19179 Mon Sep 17 00:00:00 2001
|
||||
From: Zebediah Figura <z.figura12@gmail.com>
|
||||
Date: Sat, 22 May 2021 17:38:50 -0500
|
||||
Subject: [PATCH] wined3d: Make depth bounds test into a proper state.
|
||||
@@ -12,10 +12,10 @@ Subject: [PATCH] wined3d: Make depth bounds test into a proper state.
|
||||
5 files changed, 98 insertions(+), 31 deletions(-)
|
||||
|
||||
diff --git a/dlls/wined3d/cs.c b/dlls/wined3d/cs.c
|
||||
index 1b4ed519260..33a8519a613 100644
|
||||
index bcd26b6fbb1..88f47e4437c 100644
|
||||
--- a/dlls/wined3d/cs.c
|
||||
+++ b/dlls/wined3d/cs.c
|
||||
@@ -145,6 +145,7 @@ enum wined3d_cs_op
|
||||
@@ -152,6 +152,7 @@ enum wined3d_cs_op
|
||||
WINED3D_CS_OP_SET_RENDER_STATE,
|
||||
WINED3D_CS_OP_SET_TEXTURE_STATE,
|
||||
WINED3D_CS_OP_SET_SAMPLER_STATE,
|
||||
@@ -23,7 +23,7 @@ index 1b4ed519260..33a8519a613 100644
|
||||
WINED3D_CS_OP_SET_TRANSFORM,
|
||||
WINED3D_CS_OP_SET_CLIP_PLANE,
|
||||
WINED3D_CS_OP_SET_COLOR_KEY,
|
||||
@@ -395,6 +396,12 @@ struct wined3d_cs_set_sampler_state
|
||||
@@ -402,6 +403,12 @@ struct wined3d_cs_set_sampler_state
|
||||
DWORD value;
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ index 1b4ed519260..33a8519a613 100644
|
||||
struct wined3d_cs_set_transform
|
||||
{
|
||||
enum wined3d_cs_op opcode;
|
||||
@@ -619,6 +626,7 @@ static const char *debug_cs_op(enum wined3d_cs_op op)
|
||||
@@ -626,6 +633,7 @@ static const char *debug_cs_op(enum wined3d_cs_op op)
|
||||
WINED3D_TO_STR(WINED3D_CS_OP_SET_RENDER_STATE);
|
||||
WINED3D_TO_STR(WINED3D_CS_OP_SET_TEXTURE_STATE);
|
||||
WINED3D_TO_STR(WINED3D_CS_OP_SET_SAMPLER_STATE);
|
||||
@@ -44,7 +44,7 @@ index 1b4ed519260..33a8519a613 100644
|
||||
WINED3D_TO_STR(WINED3D_CS_OP_SET_TRANSFORM);
|
||||
WINED3D_TO_STR(WINED3D_CS_OP_SET_CLIP_PLANE);
|
||||
WINED3D_TO_STR(WINED3D_CS_OP_SET_COLOR_KEY);
|
||||
@@ -1939,6 +1947,28 @@ void wined3d_device_context_emit_set_sampler_state(struct wined3d_device_context
|
||||
@@ -1946,6 +1954,28 @@ void wined3d_device_context_emit_set_sampler_state(struct wined3d_device_context
|
||||
wined3d_device_context_submit(context, WINED3D_CS_QUEUE_DEFAULT);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ index 1b4ed519260..33a8519a613 100644
|
||||
static void wined3d_cs_exec_set_transform(struct wined3d_cs *cs, const void *data)
|
||||
{
|
||||
const struct wined3d_cs_set_transform *op = data;
|
||||
@@ -2963,6 +2993,7 @@ static void (* const wined3d_cs_op_handlers[])(struct wined3d_cs *cs, const void
|
||||
@@ -2993,6 +3023,7 @@ static void (* const wined3d_cs_op_handlers[])(struct wined3d_cs *cs, const void
|
||||
/* WINED3D_CS_OP_SET_RENDER_STATE */ wined3d_cs_exec_set_render_state,
|
||||
/* WINED3D_CS_OP_SET_TEXTURE_STATE */ wined3d_cs_exec_set_texture_state,
|
||||
/* WINED3D_CS_OP_SET_SAMPLER_STATE */ wined3d_cs_exec_set_sampler_state,
|
||||
@@ -82,11 +82,11 @@ index 1b4ed519260..33a8519a613 100644
|
||||
/* WINED3D_CS_OP_SET_CLIP_PLANE */ wined3d_cs_exec_set_clip_plane,
|
||||
/* WINED3D_CS_OP_SET_COLOR_KEY */ wined3d_cs_exec_set_color_key,
|
||||
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
|
||||
index 436c4dfe854..b0c7579b4ed 100644
|
||||
index c5de58c29c9..b5a6bde6602 100644
|
||||
--- a/dlls/wined3d/device.c
|
||||
+++ b/dlls/wined3d/device.c
|
||||
@@ -1923,6 +1923,14 @@ out:
|
||||
wined3d_mutex_unlock();
|
||||
@@ -1925,6 +1925,14 @@ out:
|
||||
wined3d_device_context_unlock(context);
|
||||
}
|
||||
|
||||
+static void wined3d_device_context_set_depth_bounds(struct wined3d_device_context *context,
|
||||
@@ -100,7 +100,7 @@ index 436c4dfe854..b0c7579b4ed 100644
|
||||
void CDECL wined3d_device_context_set_viewports(struct wined3d_device_context *context, unsigned int viewport_count,
|
||||
const struct wined3d_viewport *viewports)
|
||||
{
|
||||
@@ -3612,7 +3620,8 @@ static void wined3d_device_set_texture(struct wined3d_device *device,
|
||||
@@ -3645,7 +3653,8 @@ static void wined3d_device_set_texture(struct wined3d_device *device,
|
||||
void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
struct wined3d_stateblock *stateblock)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ index 436c4dfe854..b0c7579b4ed 100644
|
||||
const struct wined3d_stateblock_state *state = &stateblock->stateblock_state;
|
||||
const struct wined3d_saved_states *changed = &stateblock->changed;
|
||||
const unsigned int word_bit_count = sizeof(DWORD) * CHAR_BIT;
|
||||
@@ -3718,7 +3727,7 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
@@ -3751,7 +3760,7 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
case WINED3D_RS_COLORWRITEENABLE1:
|
||||
case WINED3D_RS_COLORWRITEENABLE2:
|
||||
case WINED3D_RS_COLORWRITEENABLE3:
|
||||
@@ -119,7 +119,7 @@ index 436c4dfe854..b0c7579b4ed 100644
|
||||
break;
|
||||
|
||||
case WINED3D_RS_BACK_STENCILFAIL:
|
||||
@@ -3737,7 +3746,7 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
@@ -3770,7 +3779,7 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
case WINED3D_RS_ZENABLE:
|
||||
case WINED3D_RS_ZFUNC:
|
||||
case WINED3D_RS_ZWRITEENABLE:
|
||||
@@ -128,7 +128,7 @@ index 436c4dfe854..b0c7579b4ed 100644
|
||||
break;
|
||||
|
||||
case WINED3D_RS_FILLMODE:
|
||||
@@ -3746,9 +3755,15 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
@@ -3779,9 +3788,15 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
case WINED3D_RS_DEPTHBIAS:
|
||||
case WINED3D_RS_SCISSORTESTENABLE:
|
||||
case WINED3D_RS_ANTIALIASEDLINEENABLE:
|
||||
@@ -145,7 +145,7 @@ index 436c4dfe854..b0c7579b4ed 100644
|
||||
default:
|
||||
wined3d_device_set_render_state(device, idx, state->rs[idx]);
|
||||
break;
|
||||
@@ -3937,6 +3952,20 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
@@ -3970,6 +3985,20 @@ void CDECL wined3d_device_apply_stateblock(struct wined3d_device *device,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,10 +167,10 @@ index 436c4dfe854..b0c7579b4ed 100644
|
||||
{
|
||||
map = changed->textureState[i];
|
||||
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
|
||||
index 8316269afcf..6cd4ff30458 100644
|
||||
index fd2ade572c8..c873841ffb6 100644
|
||||
--- a/dlls/wined3d/state.c
|
||||
+++ b/dlls/wined3d/state.c
|
||||
@@ -2040,42 +2040,31 @@ static void state_tessellation(struct wined3d_context *context, const struct win
|
||||
@@ -2046,42 +2046,31 @@ static void state_tessellation(struct wined3d_context *context, const struct win
|
||||
state->render_states[WINED3D_RS_ENABLEADAPTIVETESSELLATION]);
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ index 8316269afcf..6cd4ff30458 100644
|
||||
}
|
||||
|
||||
static void state_wrapu(struct wined3d_context *context, const struct wined3d_state *state, DWORD state_id)
|
||||
@@ -4685,6 +4674,8 @@ const struct wined3d_state_entry_template misc_state_template_gl[] =
|
||||
@@ -4691,6 +4680,8 @@ const struct wined3d_state_entry_template misc_state_template_gl[] =
|
||||
{ STATE_DEPTH_STENCIL, { STATE_DEPTH_STENCIL, depth_stencil_2s }, EXT_STENCIL_TWO_SIDE },
|
||||
{ STATE_DEPTH_STENCIL, { STATE_DEPTH_STENCIL, depth_stencil }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_STENCIL_REF, { STATE_DEPTH_STENCIL, NULL }, WINED3D_GL_EXT_NONE },
|
||||
@@ -236,7 +236,7 @@ index 8316269afcf..6cd4ff30458 100644
|
||||
{ STATE_STREAMSRC, { STATE_STREAMSRC, streamsrc }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_VDECL, { STATE_VDECL, vdecl_miscpart }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_RASTERIZER, { STATE_RASTERIZER, rasterizer_cc }, ARB_CLIP_CONTROL },
|
||||
@@ -4798,7 +4789,6 @@ const struct wined3d_state_entry_template misc_state_template_gl[] =
|
||||
@@ -4804,7 +4795,6 @@ const struct wined3d_state_entry_template misc_state_template_gl[] =
|
||||
{ STATE_RENDER(WINED3D_RS_ADAPTIVETESS_Y), { STATE_RENDER(WINED3D_RS_ENABLEADAPTIVETESSELLATION),NULL }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_RENDER(WINED3D_RS_ADAPTIVETESS_Z), { STATE_RENDER(WINED3D_RS_ENABLEADAPTIVETESSELLATION),NULL }, WINED3D_GL_EXT_NONE },
|
||||
{ STATE_RENDER(WINED3D_RS_ADAPTIVETESS_W), { STATE_RENDER(WINED3D_RS_ENABLEADAPTIVETESSELLATION),NULL }, WINED3D_GL_EXT_NONE },
|
||||
@@ -245,7 +245,7 @@ index 8316269afcf..6cd4ff30458 100644
|
||||
{ STATE_RENDER(WINED3D_RS_MULTISAMPLEANTIALIAS), { STATE_RENDER(WINED3D_RS_MULTISAMPLEANTIALIAS), state_msaa }, ARB_MULTISAMPLE },
|
||||
{ STATE_RENDER(WINED3D_RS_MULTISAMPLEANTIALIAS), { STATE_RENDER(WINED3D_RS_MULTISAMPLEANTIALIAS), state_msaa_w }, WINED3D_GL_EXT_NONE },
|
||||
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
|
||||
index 47718c9f710..39d39396a6e 100644
|
||||
index 29326668e07..84cdea02991 100644
|
||||
--- a/dlls/wined3d/utils.c
|
||||
+++ b/dlls/wined3d/utils.c
|
||||
@@ -5323,6 +5323,8 @@ const char *debug_d3dstate(DWORD state)
|
||||
@@ -258,10 +258,10 @@ index 47718c9f710..39d39396a6e 100644
|
||||
return wine_dbg_sprintf("UNKNOWN_STATE(%#x)", state);
|
||||
}
|
||||
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
|
||||
index 56c90ba6606..e7ee1c1478a 100644
|
||||
index aa8974366a6..735dbff805e 100644
|
||||
--- a/dlls/wined3d/wined3d_private.h
|
||||
+++ b/dlls/wined3d/wined3d_private.h
|
||||
@@ -1854,7 +1854,10 @@ void dispatch_compute(struct wined3d_device *device, const struct wined3d_state
|
||||
@@ -1861,7 +1861,10 @@ void dispatch_compute(struct wined3d_device *device, const struct wined3d_state
|
||||
#define STATE_STENCIL_REF (STATE_DEPTH_STENCIL + 1)
|
||||
#define STATE_IS_STENCIL_REF(a) ((a) == STATE_STENCIL_REF)
|
||||
|
||||
@@ -273,7 +273,7 @@ index 56c90ba6606..e7ee1c1478a 100644
|
||||
|
||||
#define STATE_COMPUTE_SHADER (STATE_COMPUTE_OFFSET)
|
||||
#define STATE_IS_COMPUTE_SHADER(a) ((a) == STATE_COMPUTE_SHADER)
|
||||
@@ -3703,6 +3706,13 @@ struct wined3d_light_state
|
||||
@@ -3714,6 +3717,13 @@ struct wined3d_light_state
|
||||
const struct wined3d_light_info *lights[WINED3D_MAX_ACTIVE_LIGHTS];
|
||||
};
|
||||
|
||||
@@ -287,7 +287,7 @@ index 56c90ba6606..e7ee1c1478a 100644
|
||||
#define WINED3D_STATE_NO_REF 0x00000001
|
||||
#define WINED3D_STATE_INIT_DEFAULT 0x00000002
|
||||
|
||||
@@ -3757,8 +3767,11 @@ struct wined3d_state
|
||||
@@ -3768,8 +3778,11 @@ struct wined3d_state
|
||||
struct wined3d_blend_state *blend_state;
|
||||
struct wined3d_color blend_factor;
|
||||
unsigned int sample_mask;
|
||||
@@ -299,7 +299,7 @@ index 56c90ba6606..e7ee1c1478a 100644
|
||||
struct wined3d_rasterizer_state *rasterizer_state;
|
||||
};
|
||||
|
||||
@@ -4878,6 +4891,8 @@ void wined3d_device_context_emit_set_clip_plane(struct wined3d_device_context *c
|
||||
@@ -4914,6 +4927,8 @@ void wined3d_device_context_emit_set_clip_plane(struct wined3d_device_context *c
|
||||
void wined3d_device_context_emit_set_constant_buffers(struct wined3d_device_context *context,
|
||||
enum wined3d_shader_type type, unsigned int start_idx, unsigned int count,
|
||||
const struct wined3d_constant_buffer_state *buffers) DECLSPEC_HIDDEN;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From c7cbd42a6085d03a94ee4ac9b77834b3725bf033 Mon Sep 17 00:00:00 2001
|
||||
From 6c3c8c98a9f28aa2d51626fde58efcb78cf08ab1 Mon Sep 17 00:00:00 2001
|
||||
From: Zebediah Figura <z.figura12@gmail.com>
|
||||
Date: Sat, 22 May 2021 18:11:07 -0500
|
||||
Subject: [PATCH] nvapi: Implement NvAPI_D3D11_SetDepthBoundsTest().
|
||||
@@ -117,11 +117,11 @@ index c8b66ac2fa3..b8b4750203a 100644
|
||||
/* d3d9 tests */
|
||||
wc.lpfnWndProc = DefWindowProcA;
|
||||
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
|
||||
index b0c7579b4ed..8c61c530812 100644
|
||||
index b5a6bde6602..607af1514dc 100644
|
||||
--- a/dlls/wined3d/device.c
|
||||
+++ b/dlls/wined3d/device.c
|
||||
@@ -1923,7 +1923,7 @@ out:
|
||||
wined3d_mutex_unlock();
|
||||
@@ -1925,7 +1925,7 @@ out:
|
||||
wined3d_device_context_unlock(context);
|
||||
}
|
||||
|
||||
-static void wined3d_device_context_set_depth_bounds(struct wined3d_device_context *context,
|
||||
@@ -130,7 +130,7 @@ index b0c7579b4ed..8c61c530812 100644
|
||||
{
|
||||
TRACE("context %p, enable %d, min %.8e, max %.8e.\n", context, enable, min, max);
|
||||
diff --git a/dlls/wined3d/wined3d.spec b/dlls/wined3d/wined3d.spec
|
||||
index 1bce4def265..802194dcbec 100644
|
||||
index 48bea5980ff..81ac821c1c6 100644
|
||||
--- a/dlls/wined3d/wined3d.spec
|
||||
+++ b/dlls/wined3d/wined3d.spec
|
||||
@@ -124,6 +124,7 @@
|
||||
@@ -142,7 +142,7 @@ index 1bce4def265..802194dcbec 100644
|
||||
@ cdecl wined3d_device_context_set_depth_stencil_view(ptr ptr)
|
||||
@ cdecl wined3d_device_context_set_index_buffer(ptr ptr long long)
|
||||
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
|
||||
index 7be893b8f21..689fc55fdfe 100644
|
||||
index 7a6588ea4f4..d90569238fc 100644
|
||||
--- a/include/wine/wined3d.h
|
||||
+++ b/include/wine/wined3d.h
|
||||
@@ -2513,6 +2513,8 @@ void __cdecl wined3d_device_context_set_blend_state(struct wined3d_device_contex
|
||||
|
Reference in New Issue
Block a user