Samuel Pitoiset
164b1884c0
radv: bind our internal depth buffer when not provided by the app
...
When a subpass uses a VRS attachment without binding a depth/stencil
attachment (yes, this is allowed by the Vulkan spec), we have to bind
our internal depth buffer that contains the VRS data.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
513a166a7b
radv: handle the VRS attachment subpass
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
bb88f73ad3
radv: create an image for VRS if no depth/stencil attachment is bound
...
The Vulkan spec doesn't require the application to always binds
a depth/stencil attachment when a VRS attachment is used inside the
same subpass.
To handle this situation, the driver creates a global 4096x4096
VRS image that will be bind at draw-time if needed. This isn't
super ideal but we have to do that unfortunately.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
ba7c510e1f
radv: allow HTILE for very small images if VRS attachment is used
...
We need a HTILE buffer to store the VRS rates.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
7bd3a9f502
radv: update the HTILE clear word when VRS is used
...
SR1 is the VRS x-rate.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
d075711b0e
radv: do not use the whole HTILE buffer for depth when VRS is used
...
The stencil data needs to be included for storing the VRS rates
into the HTILE buffer.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
73dac68cb8
radv: configure the VRS HTILE encoding size
...
Any depth buffer can potentially use VRS.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
62033e0cb3
radv: determine if attachment VRS is enabled
...
When VRS attachment, any depth buffer can potentially be used for VRS.
We also have to create a global depth buffer if the app doesn't
provide one.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
9141716481
radv: do not enable DCC for fragment shading rate attachments
...
That's unnecessary.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
5980cd5768
radv: do not allow MSAA with fragment shading rate attachments
...
The Vulkan spec requires the implementation to only supports
VK_SAMPLE_COUNT_1_BIT with fragment shading rate attachments.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
ec6da922df
radv: expose R8_UINT as the only supported format for VRS attachments
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
f232c404d3
ac/surface: store the HTILE pitch to the surface
...
This will be used to copy VRS rates to the HTILE buffer.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
b9c7c5098e
ac/surface: implement HtileAddrFromCoord in NIR
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
9fabbf2150
ac/surface: copy the HTILE equations to the surface
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
438e02fc0f
ac/surface: increase gfx9_meta_equation::gfx10_bits by 4 elements
...
For the HTILE equation.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
9eee737364
ac/surface: rename gfx9_dcc_equation to gfx9_meta_equation
...
gfx9_meta_equation will be used to store the HTILE equation.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
1edda9e878
ac/surface: add a test of HtileAddrFromCoord prototype outside of addrlib
...
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
64bd245c84
ac/surface: rename ac_surface_dcc_address_test.c
...
This file will also contain HTILE equation tests.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Samuel Pitoiset
4d25229c24
amd/addrlib: expose HTILE address equations to drivers on GFX10+
...
Similar to the DCC address equations. Only GFX10+ because this
is for copying VRS rates to the HTILE buffer.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10187 >
2021-04-14 09:31:13 +00:00
Erik Faye-Lund
3ebe604ad6
lavapipe: ask pipe-driver for int16 support
...
We shouldn't assume the driver can deal with int16 unless it reports
that it can.
... And LLVMpipe isn't quite there yet, see this MR for details:
https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10185
Fixes: b38879f8c5 ("vallium: initial import of the vulkan frontend")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10189 >
2021-04-14 09:17:00 +00:00
Erik Faye-Lund
ffe534f27b
lavapipe: check all graphics stages
...
For these caps, we need to check all stages to be sure we've got things
right.
Again, this is probably benign, because LLVMpipe should support the same
value for all stages.
Fixes: b38879f8c5 ("vallium: initial import of the vulkan frontend")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10189 >
2021-04-14 09:17:00 +00:00
Erik Faye-Lund
d91a549b67
lavapipe: check all vertex-stages
...
We should really check for the minimum of all supported vertex-stages
here, not just the vertex-shader.
This shouldn't make any real-world difference, because we really only
support LLVMpipe here, and that driver has the same limits for all
stages. But it seems better to actually check all stages instead of just
assuming.
Fixes: b38879f8c5 ("vallium: initial import of the vulkan frontend")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10189 >
2021-04-14 09:17:00 +00:00
Erik Faye-Lund
83de54f6a6
lavapipe: do not subtract 8 from enum
...
This seems arbitrary, and makes us check for PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS
instead of PIPE_SHADER_CAP_MAX_SHADER_IMAGES, which isn't what we want.
The end result is that we accidentally exposed 128 shader images,
instead of 16. This can lead to us writing outside of the array of
shader images in llvmpipe_set_shader_images, among other bad things.
Fixes: b38879f8c5 ("vallium: initial import of the vulkan frontend")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10189 >
2021-04-14 09:17:00 +00:00
Axel Davy
7fbd7bb7cb
st/nine: Default tearfree_discard to true
...
With tearfree_discard=false, we tear when rendering
fullscreen apps with vsync off.
This is a feature in the sense it's the same as the native
implementation. This also means lower input lag.
However I think most users will prefer to have no tearing,
and don't care about sub refresh-rate input lag.
Thus it's better to default tearfree_discard to true.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
c19a841fd4
st/nine: Default thread_submit to true
...
When rendering fullscreen with vsync on at
a rate close to the refresh rate, you can
miss pageflips by submitting buffers for pageflip
that end up not finished being rendered when the pageflip is due.
With Nine in this situation you could get half the refresh
rate fps before this patch.
Due to the way the presentation backend is implemented,
it's not possible to easily detect the situation and adapt (use
one more backbuffer, but only in this scenario to not increase input
lap when the issue is not present).
thread_submit doesn't have this issue.
Let's default thread_submit to true.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
a2a95abb6c
st/nine: Improve performance with thread_submit
...
Use the Async flush flag to return faster during
Present() when thread_submit is used.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
062c4cc0b9
st/nine: Bump num of backbuffers for tearfree thread_submit
...
Running some high fps benchmarks, thread_submit gets
subpar fps with the option tearfree_discard.
Increasing the number of backbuffers fixes it.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
53f4766a3e
st/nine: Lower texture_memory_limit default
...
512 MB is too ambitious as default value.
128 MB seems safer, and users can increase the limit
manually for the few games that would benefit from it.
Also fixes a typo in the description
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
b41f1e32e9
st/nine: Make it optional to use a sw renderer
...
Until the problem described in
https://gitlab.freedesktop.org/mesa/mesa/-/issues/4489
is fixed, the advantages of using a sw renderer for the
sw rendering in nine are too small compared to the
disadvantages.
Add an option to control whether we use a sw renderer,
and make it so by default we don't.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
c5f75bc200
st/nine: Allow to override the vram size
...
This can be useful for debugging, or for some apps
not supporting >= 4GB of vram.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
26a42f1053
st/nine: Disable buffer_upload when csmt is off
...
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
5702b15cd9
st/nine: Use PIPE_MAP_ONCE for persistent buffers
...
This enables radeonsi to really unmap on release,
which reduces virtual memory usage.
Do it only on 32 bits, as it can reduce performance if the
allocation is reused.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
7ac9c9c667
st/nine: Add fallback for YUV formats
...
Adds alternative format to store YUV textures/surfaces.
These will be converted on upload to the alternative format.
Fixes: https://github.com/iXit/wine-nine-standalone/issues/39
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
25d203a116
st/nine: Do not memset buffers twice
...
No need to apply memset on an allocation
from align_calloc.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
805cedd207
st/nine: Have NOOVERWRITE win over DISCARD
...
I held for a long time the belief DISCARD wins
over NOOVERWRITE, backed by experiments.
But probably both behaviours are ok.
For perf it is better to have NOOVERWRITE win.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
1797a6eb04
st/nine: Add logging to Ex function
...
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
4953d19518
st/nine: Complete *Ex stubs
...
Returning D3D_OK instead of an error when it
makes sense.
Return the value passed previously (or the default)
when it makes sense.
Add (void)variable for unused input variables.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
8c72f7506e
st/nine: Pseudo implement Create*Ex functions
...
It seems some apps use them.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
006338f702
st/nine: Improve Reset on Ex devices
...
Found with wine tests
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
ee580c96ef
st/nine: Pseudo implement set/getClipstatus
...
Not sure why any app would use this in production,
it seems like a debugging feature. Still some do make
the calls.
Fixes: https://github.com/iXit/wine-nine-standalone/issues/99
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:14 +00:00
Axel Davy
a1bb1b9b07
st/nine: Catch redundant scissor and viewport settings
...
The redundancy check is done in the nine_context function,
rather than the device function, in order to also filter
calls from SetRenderTarget and Reset*.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
e0caa05d42
st/nine: Fix ff has_aNrm computation
...
In some cases the wrong computation led the
normal to be zero instead of the correct value,
which led to artifacts.
Fixes: https://github.com/iXit/wine-nine-standalone/issues/105
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
a0288fa3b7
st/nine: Fix ps ff BLENDTEXTUREALPHA
...
This ff ps operation has the texture alpha as input.
Thus we need to sample the texture.
Fixes: https://github.com/iXit/wine-nine-standalone/issues/105
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
9e9644666e
st/nine: Refuse depth buffers as rendertargets
...
If we allow them, some apps try to use them
as rendertargets.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
a849923aea
st/nine: Clamp max_anisotropy
...
GL does the same.
Fixes the low texture quality issue of
https://github.com/iXit/wine-nine-standalone/issues/21
The are some indications it might not be the native
behaviour (which makes sense, the native filtering
of states seems more to not update internal states
when the passed value is invalid).
However it's better visually to have anisotropic filtering
enabled in these buggy cases.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
619c53489f
st/nine: Ignore swizzle on samplers
...
Prevents a crash running wine tests
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
787b03d5f6
st/nine: Increase number of constants of vs1_sw
...
Wine tests seem to indicate more the 256 should
be supported for this case, but I couldn't find the
doc for how much it should be. Use the vs >= 2
settings for now.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
138615a094
st/nine: Remove errors on unsupported lock flags
...
Some applications seem to pass undefined flags...
And we shouldn't return an error.
Found investigating:
https://github.com/iXit/wine-nine-standalone/issues/100
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
70f8d78aa7
st/nine: Handle D3DFMT_NULL multisampling
...
When D3DFMT_NULL is set as render target,
we must take the multisampling state
from the depth buffer.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00
Axel Davy
de66d503f7
st/nine: Enable multisampling also without depth buffer
...
Found with wine tests.
Signed-off-by: Axel Davy <davyaxel0@gmail.com >
Acked-by: Timur Kristóf <timur.kristof@gmail.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160 >
2021-04-14 08:33:13 +00:00