| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
The behaviour is a bit less obscure now.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
|
| |
BackBuffers can survive swapchain dtor if
the user has a reference on them.
The swapchain itself has no reference on the buffer.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
We don't bind the container in AddRef.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
Remove some noop operations.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
Use the newly introduced counter to know when we don't
need synchronization.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Similar to the other macros, but introduces a counter,
which enables to know when the instructions has been
executed.
Signed-off-by: Patrick Rudolph <[email protected]>
|
|
|
|
|
|
| |
Enables to not wait for the worker thread for ColorFill.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
When we lock the whole surface to overwrite it, we can use DISCARD.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
For render targets, NineSurface9_GetSurface is not
expected to fail.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
Use the acquire/release semantic when we don't need
to wait for any pending command.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the secondary pipe for DISCARD/NOOVERWRITE, which
avoids stalling to get the pipe from the worker thread.
v2: flush at unmap. This is required for example if
the driver does hidden draw calls or copies. In the case
of unsynchronized it is probably not required, but
it is more safe.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
The secondary pipe will be used for operations
that don't need synchronization.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
See commit for description.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Tests show SYSTEMMEM should ignore DISCARD.
Prevents game bugs with following patches reimplementing
DISCARD. Halo is affected.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
|
| |
Previously we were uploading Managed buffers at the next draw call
after they were set dirty.
This is not the expected behaviour. Instead upload just before
draw call needing the content.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
Similar code than for textures.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
BASETEX_REGISTER_UPDATE was adding the texture to the list
of textures to upload in too many cases. tex->base.base.bind
will be set to true if the texture is in a stateblock, whereas
we want to upload only if bound to the device, which is
what bind_count is for.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
This makes the code more readable.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
Use nine_context wrapper for resource_copy_region.
Enables to offload it with CSMT.
Signed-off-by: Patrick Rudolph <[email protected]>
|
|
|
|
|
|
| |
Enables to offload it with CSMT.
Signed-off-by: Patrick Rudolph <[email protected]>
|
|
|
|
|
|
| |
To ease debugging.
Signed-off-by: Patrick Rudolph <[email protected]>
|
|
|
|
|
|
| |
To ease debugging.
Signed-off-by: Patrick Rudolph <[email protected]>
|
|
|
|
|
|
|
|
| |
Use an offloading thread for all nine_context functions.
Macros are used to ease the reading of the code.
Signed-off-by: Patrick Rudolph <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
With csmt, every usage of the pipe in the main thread
has to be protected by calling GetPipe.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
Required to know the size exact size of the plane.
Signed-off-by: Patrick Rudolph <[email protected]>
|
|
|
|
|
|
| |
This queue mechanism will be used for CSMT.
Signed-off-by: Patrick Rudolph <[email protected]>
|
|
|
|
|
|
|
|
| |
Create the pipe_surfaces on renderable resources creation.
This enables to avoid creating them on the fly.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
The change is required with csmt, where depending on the thread
you don't access the pipe the same way.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new version uses nine_context functions instead of
applying the changes directly to nine_context.
This will enable it to work with CSMT.
v2: Fix nine_context_light_enable_stateblock
The memcpy arguments were wrong, and the state
wasn't set dirty.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
Some fields are subject to modification outside of nine_context
(SetLod, etc).
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
This patch it to avoid name conflict when device->pipe
will be moved to nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
This patch it to avoid name conflict when device->cso
is moved to nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
Except for nine_ff and nine_state.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
| |
Was useless. Remove useless usage in
swapchain9.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
This will enable to use threading for them.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
|
| |
nine_bind didn't need atomics up to now,
because it's use what always within a protected
mutex. We need to use atomics because with the
next patches several threads may use nine_bind.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
|
|
| |
Part of the refactor to move all gallium calls to
nine_state.c, and have all internal states required
for those calls in nine_context.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
Call a helper function.
Signed-off-by: Axel Davy <[email protected]>
|
|
|
|
|
|
| |
Call a helper function to set the light.
Signed-off-by: Axel Davy <[email protected]>
|