From: Patrick Rudolph <s...@das-labor.org>
Allocate resources in surface ctor.
Allows to use statetracker internal memory accounting.
Fix for issue #231.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_tra
And cap to 2 GB on 32 bits.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=94561
Signed-off-by: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
---
src/gallium/auxiliary/os/os_misc.c | 2 +-
src/gallium/drivers/llvmpipe/lp_screen.c | 5 ++
Found looking at Wine formulas.
Fixes a few visual issues.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_tr
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 23 +++
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_trackers/nine/nine_ff.c
index 374e92f..1
From: Patrick Rudolph <s...@das-labor.org>
Remove {Set/Get/Free}PrivateData in volume9.
Functionality has been implement in IUnknown interface.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine
From: Patrick Rudolph <s...@das-labor.org>
Implement {Set/Get/Free}PrivateData in iunknown to get rid
of duplicated code in resource9 and volume9.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nin
.
Remove the vs code, and use the ps code.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 13 +++--
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_tracker
From: Patrick Rudolph <s...@das-labor.org>
Return one supported quality level in error cases.
Return error on invalid multisample count.
Fixes failing wine tests.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/s
Thanks to wine tests.
Apparently 4x4 inverse is to be used, and
if the inverse can't be calculated, the
input matrix is to be used.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 26 ++
src/gallium/state_trackers/nine/nin
From: Patrick Rudolph <s...@das-labor.org>
Tests showed that is allowed to call this method on
object that have a zero refcount.
Required for issue #230.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_tracke
From: Patrick Rudolph <s...@das-labor.org>
Add an assert to make sure buffer creation doesn't fail.
Add error handling in calling functions.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine
The computation was reversed.
Deduced by tests on windows.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_tr
In mixed vertex processing, the user can enable or disable
software vertex processing. It is on hardware by default.
This feature is not a state, and thus the setting doesn't
need to be recorded by stateblocks.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_tracker
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/swapchain9.c | 43 +---
src/gallium/state_trackers/nine/swapchain9.h | 8 +++---
2 files changed, 11 insertions(+), 40 deletions(-)
diff --git a/src/gallium/state_trackers/nine/swapch
Processing
should now work, and The Sims 2 (which needs ProcessVertices with vs3
support) works (These are not yet supported by wine ogl, but this is
likely to come as well on their side in some near future).
Yours,
Axel
Axel Davy (50):
llvmpipe: Fix overflow for 32 bits available memory
Fixes crash after Reset() when using thread_submit=true
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/swapchain9.c | 4
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/nine/swapchain9.c
b/src/gallium/state_trackers/nine/swap
no behaviour change, actually
solved a visual bug observed on a sample program.
This was due to ureg_normalize3 polluting a temporary
variable.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 233 +-
1 file change
swvp has relaxed limits (more nested loops, etc).
In particular it enables more constants.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_shader.c | 156 ++--
src/gallium/state_trackers/nine/nine_shader.h | 2 +
src/g
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/nine/device9.c
b/src/gallium/state_trackers/nine/device9.c
index f2317b6..e4ede6e 100644
--- a/src/g
This change makes easier to introduce tracking for
swvp constants.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 14 +++---
src/gallium/state_trackers/nine/nine_state.c | 18 +
src/gallium/state_trackers/nine/nine_state.h
position_t disables fog computation.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_trackers/nine/nine_ff.c
According to spec.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
---
src/gallium/state_trackers/nine/nine_ff.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b
This path has been disabled for some time because
of some bugs with it. It hasn't been updated to the
new features, and is not faster.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
---
src/gallium/state_trackers/nine/device9.c|
Fixes a softpipe assertion failure with wine tests
Signed-off-by: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
---
src/gallium/state_trackers/nine/nine_ff.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/gallium/st
When this state is set, the normals computed
in the vs ff shader should be normalized.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Patrick Rudolph s...@das-labor.org
---
src/gallium/state_trackers/nine/nine_ff.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
From: Patrick Rudolph <s...@das-labor.org>
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/swapchain9.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/gallium/s
The new order simplified the code a bit for
next patches.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 124 +-
1 file changed, 72 insertions(+), 52 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_f
Deduced by test on windows.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_trackers/nine/nine_ff.c
index 4
From: Patrick Rudolph <s...@das-labor.org>
To ease debugging print interface id.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/surface9.c | 5 +
1 file changed, 5 insertions(+)
diff -
This behaviour has been partially tested on windows.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 14 --
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/g
From: Patrick Rudolph <s...@das-labor.org>
Wine tests show that cubetextures always use
PIPE_TEX_WRAP_CLAMP_TO_EDGE regardless of set
sampler states.
Fixes failing d3d9 wine test test_cube_wrap.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <a
Fix deduced from the spec.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_trackers/nine/nine_ff.c
index c
From: Patrick Rudolph <s...@das-labor.org>
Switch {Set/Get/Free}PrivateData function to introduced IUnknown functions.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/cubetexture9.c |
Found reading msdn and checking Wine.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 21 +
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_ff.c
b/src/gallium/state_tracker
D3DFMT_NULL is mapped to PIPE_FORMAT_NONE.
Instead of relying on PIPE_FORMAT_NONE to
return a size, pick one.
The one picked is the same than Wine.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_pipe.h | 2 ++
1 file changed, 2 insertions(+)
diff
From: Patrick Rudolph <s...@das-labor.org>
Add debug output to ease debugging.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/swapchain9.c | 2 ++
1 file changed, 2 insertions(+)
diff -
There was an multiplication by the world matrix 0
which had nothing to do there.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 27 ++-
1 file changed, 10 insertions(+), 17 deletions(-)
diff --git a/src/gallium/state_tr
Buffers with this flag must be usable with both software
and hardware vertex processing. Use Staging for fast cpu access.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
---
src/gallium/state_trackers/nine/buffer9.c | 5 +++--
1 fil
To implement the feature we copy the ps inputs to a temp array.
This is not optimal for performance, but it is the simplest solution.
This is a feature that is very very rarely used.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_shader.
From: Patrick Rudolph <s...@das-labor.org>
To ease debugging print interface id.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/volume9.c | 5 +
1 file changed, 5 insertions(+)
diff -
Fixes hangs on radeonsi, and assert on llvmpipe.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
Cc: "12.0" <mesa-...@lists.freedestkop.org>
---
src/gallium/state_trackers/nine/nine_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/galli
From: Patrick Rudolph <s...@das-labor.org>
Move assert to function entry.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/surface9.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Patrick Rudolph <s...@das-labor.org>
Return error instead of crashing on source surfaces
with format D3DFMT_NULL.
Fix for issue #236.
Tested on Windows 7.
Signed-off-by: Patrick Rudolph <s...@das-labor.org>
Reviewed-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/s
There are several holes. This patch reduces
the holes a bit, which reduces the size of
the constant buffer uploaded.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_ff.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff
On 04/10/2016 12:32, Emil Velikov wrote:
On 2 October 2016 at 14:17, Axel Davy <axel.d...@ens.fr> wrote:
Hi,
If I understand, there hasn't been yet statements on whether the freeze is
for Oct 7 or Oct 14.
Could there be one ?
I'd prefer myself Oct 14, because we have a lot of p
Fixes regression introduced by
ecd6fce2611e88ff8468a354cff8eda39f260a31
and is more future proof than just clearing the next
field.
Other nine usages did already zero out the templates.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 6 +
On 16/09/2016 14:51, Nayan Deshmukh wrote:
bool flushed;
+ bool is_different_gpu;
};
I get a warning when I build about incompatible pointer type at the line
fd = loader_get_user_preferred_fd(fd, >is_different_gpu);
When compiling on 32 bits.
I get this should be int.
Axel
Hi,
If I understand, there hasn't been yet statements on whether the freeze
is for Oct 7 or Oct 14.
Could there be one ?
I'd prefer myself Oct 14, because we have a lot of patches for nine, and
they deserve more cleaning and testing, but if it's Oct 7, we'll try be
on time.
Axel
On
typo in the commit title: libudev-dev
Axel
On 11/10/2016 20:31, Emil Velikov wrote:
From: Emil Velikov
Signed-off-by: Emil Velikov
---
.travis.yml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index
On 14/10/2016 22:33, Emil Velikov wrote:
On 14 October 2016 at 20:21, Axel Davy <axel.d...@ens.fr> wrote:
The code looks good. With the minor nitpick fixed, this patch is:
Reviewed-by: Axel Davy <axel.d...@ens.fr>
Thanks. If you can skim through any of the other pat
We are not sure exactly what needs to be 0 initialized,
but we are missing some cases. 0 initialize all our current
aligned allocation.
Fixes Tree of Savior visual issues.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/buffer9.c | 2 +-
src/g
Add implementation for align_calloc,
which is align_malloc + memset.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/auxiliary/util/u_memory.h | 7 +++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_memory.h
b/src/gallium/auxiliary/util/u_me
Only one Face of Cubetextures were locked when in DEFAULT Pool.
Fixes:
https://github.com/iXit/Mesa-3D/issues/129
CC: "12.0 13.0" <mesa-sta...@lists.freedesktop.org>
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/surface9.c | 1 +
1 fil
On 22/10/2016 16:42, Brian Paul wrote:
On Sat, Oct 22, 2016 at 4:28 AM, Axel Davy <axel.d...@ens.fr
<mailto:axel.d...@ens.fr>> wrote:
Add implementation for align_calloc,
which is align_malloc + memset.
Signed-off-by: Axel Davy <axel.d...@ens.fr <mailt
In the format fallback path,
the height was used instead of the depth.
CC: "12.0 13.0" <mesa-sta...@lists.freedesktop.org>
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/volume9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
di
Add implementation for align_calloc,
which is align_malloc + memset.
v2: add if (ptr) before memset.
Fix indentation.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/auxiliary/util/u_memory.h | 8
1 file changed, 8 insertions(+)
diff --git a/src/gallium/auxiliar
For some reason, it introduces crashes. Not sure why.
I also figured out this doesn't free anything. There seems to be missing
code to free the 'nine_range_pool', and we leak at every device dtor.
Patch 1/2 is still an important fix to avoid leaks.
On 18/10/2016 23:11, Axel Davy wrote
.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_state.c | 39 +---
1 file changed, 18 insertions(+), 21 deletions(-)
diff --git a/src/gallium/state_trackers/nine/nine_state.c
b/src/gallium/state_trackers/nine/nine_state.c
index f
The datastructures to track dirty constants
weren't freed.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/src/gallium/state_trackers/nine/device9.c
b/src/gallium/state_tr
Use uint64_t instead of int64_t in the calculation,
as the result is uint64_t.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
This corrects the small mistake from
218459771a1801d7ad20dd340ac35a50f2b5b81a
as reported by Emil.
src/gallium/auxiliary/os/os_misc.c | 4 ++--
1 file chan
On Tue, Oct 11, 2016 at 12:59 PM, Axel Davy <axel.d...@ens.fr
<mailto:axel.d...@ens.fr>> wrote:
Use uint64_t instead of int64_t in the calculation,
as the result is uint64_t.
Signed-off-by: Axel Davy <axel.d...@ens.fr <mailto:axel.d...@ens.fr>>
---
This co
On 11/10/2016 20:31, Emil Velikov wrote:
- udev = udev_new();
- if (!udev)
- goto prime_clean;
+ if (drmGetDevice(default_fd, ) != 0)
+ goto err;
- default_device_id_path_tag = get_id_path_tag_from_fd(udev, default_fd);
- if (!default_device_id_path_tag)
- goto
On 10/10/2016 12:44, Emil Velikov wrote:
On 6 October 2016 at 18:51, Axel Davy <axel.d...@ens.fr> wrote:
On systems with more than 4GB of ram,
os_get_total_physical_memory was triggering an integer
overflow for the linux and haiku path, when on
32 bits.
Bugzilla: https://bugs.freedeskt
Fixes regression introduced by
b5603056872708fdd82f1224854097805a01d4c0
The regression prevents some apps to start.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/adapter9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/g
I've pushed this just now to be sure it makes it for mesa 13.
On 16/10/2016 11:47, Axel Davy wrote:
Fixes regression introduced by
b5603056872708fdd82f1224854097805a01d4c0
The regression prevents some apps to start.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_tr
On 12/10/2016 19:15, Emil Velikov wrote:
On 11 October 2016 at 19:54, Axel Davy <axel.d...@ens.fr> wrote:
On 11/10/2016 20:31, Emil Velikov wrote:
- udev = udev_new();
- if (!udev)
- goto prime_clean;
+ if (drmGetDevice(default_fd, ) != 0)
+ go
our of previous
code.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/surface9.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/surface9.c
b/src/gallium/state_trackers/nine/surface9.c
index dc31bb9..664b7
Since 1604efa6fda9b780e8537a131ad77f3e83e5a67a,
lconsti and lconstb don't need to be initialized.
Remove some leftovers from the previous code (which
has now invalid use of ARRAY_SIZE on a pointer instead
of an array).
Reported by Coverity.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
--
eserve the current functionality for libudev users and
allow others to benefit from it as well.
v2: Drop ranty comments, pick the correct device
Cc: Axel Davy <axel.d...@ens.fr>
Signed-off-by: Emil Velikov <emil.veli...@collabora.com>
---
src/loa
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 5 -
src/gallium/state_trackers/nine/nine_state.
Call a helper function.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 25 +---
src/gallium/state_trackers/nine/nine_state.c | 35
src/gallium/state_trackers/nine/nine_state.h | 4
3 files c
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 33 --
src/gallium/state_trackers/nine/nine_s
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/basetexture9.c | 3 +-
src/gallium/state_trackers/nine/device9.c
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 7 +++---
src/gallium/state_trackers/nine/nine_state.
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 18 +++---
src/gallium/state_trackers/nine/nine_state.c
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 4 ++-
src/gallium/state_trackers/nine/nine_ff.c| 2 +
nine_context is a new structure which goal will be
to contain all internal states. It will be the states
of the second thread in the to-be-introduced CSMT mode.
This patch moves several internal states to nine_context,
while the next patches add the other fields.
Signed-off-by: Axel Davy <axe
This patch it to avoid name conflict when device->cso
is moved to nine_context.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_state.c| 12 ++--
src/gallium/state_trackers/nine/nine_state.h| 2 +-
src/gallium/state_trackers/nine/pix
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 209 +++--
src/gallium/state_tracker
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 60 --
src/gallium/state_trackers/nine/nin
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_state.c | 32 +---
1 file changed, 24 inse
From: Patrick Rudolph
Similar to the other macros, but introduces a counter,
which enables to know when the instructions has been
executed.
Signed-off-by: Patrick Rudolph
---
src/gallium/state_trackers/nine/nine_csmt_helper.h | 54 ++
When we lock the whole surface to overwrite it, we can use DISCARD.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/nine/device9.c
b/src/g
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/iunknown.h | 5 +++--
We don't bind the container in AddRef.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/iunknown.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/iunknown.h
b/src/gallium/state_trackers/nine/iunknown.h
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 21 +--
src/gallium/state_tracker
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 57
src/gallium/state_tracker
Was useless. Remove useless usage in
swapchain9.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 6 --
src/gallium/state_trackers/nine/device9.h| 3 ---
src/gallium/state_trackers/nine/swapchain9.c | 1 -
src/gallium/state_tracker
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 16 +++-
src/gallium/state_trackers/nine/nine_state.c
Textures already have the check in BaseTexture9.
Non-Textures cannot be in the MANAGED Pool.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/surface9.c | 4
1 file changed, 4 deletions(-)
diff --git a/src/gallium/state_trackers/nine/surface9.c
b/src/g
DRI_CONF_NINE_OVERRIDEVENDOR was missing gettext for the
description.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/mesa/drivers/dri/common/xmlpool/t_options.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/common/xmlpool/t_options.h
b/sr
We want to use centroid for nonmaskable
multisampling as well.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/pixelshader9.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/nine/pixelshader9.h
b/src/g
cursor.image is used for software cursor
emulation. It wasn't released.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/state_trackers/nine/device9.c
b/src/gallium/state_tracker
Ignore empty draw calls.
Avoid assertion fault when such draw calls happen
in u_upload_mgr.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/state_trackers/nine/device9.c
b/src/g
The call was not needed.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/gallium/state_trackers/nine/device9.c
b/src/gallium/state_trackers/nine/device9.c
index 055e71d..7bdf19f 100644
---
The behaviour is a bit less obscure now.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/iunknown.c | 9 ++---
src/gallium/state_trackers/nine/iunknown.h | 30 --
2 files changed, 18 insertions(+), 21 deletions(-)
diff --git
Use the newly introduced counter to know when we don't
need synchronization.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_state.c | 33 +++-
src/gallium/state_trackers/nine/nine_state.h | 6 ++---
src/gallium/state_tracker
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c| 7 ++-
src/gallium/state_trackers/nine/device9ex.c
See commit for description.
Signed-off-by: Axel Davy <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/nine_queue.c | 9
src/gallium/state_trackers/nine/nine_queue.h | 3 ++
src/gallium/state_trackers/nine/nine_state.c | 67
src/gallium/state_tr
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 <axel.d...@ens.fr>
---
src/gallium/state_trackers/nine/device9.c | 3 ++-
src/gallium/state_trackers/nine/nine_state.c
701 - 800 of 1075 matches
Mail list logo