[Mesa-dev] [PATCH] i965: silence incompatible pointer type warning

2015-10-17 Thread Emil Velikov
src/mesa/drivers/dri/i965/brw_program.c:94:39: warning: passing argument 1 of ‘_mesa_init_gl_program’ from incompatible pointer type [-Wincompatible-pointer-types] return _mesa_init_gl_program(>program, target, id); ^ Runtime was unaffected as

Re: [Mesa-dev] [PATCH 09/10] vbo: fix GL_LINE_LOOP stray line bug

2015-10-17 Thread Charmaine Lee
>From: Brian Paul >Sent: Friday, October 16, 2015 2:25 PM >To: mesa-dev@lists.freedesktop.org >Cc: Charmaine Lee; Jose Fonseca; Sinclair Yeh >Subject: [PATCH 09/10] vbo: fix GL_LINE_LOOP stray line bug >When long GL_LINE_LOOP primitives don't fit in one vertex buffer they

[Mesa-dev] [PATCH 16/40] pipe-loader: teardown the winsys, if create_screen fails

2015-10-17 Thread Emil Velikov
i.e. plug some (hard to hit) memory leaks. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c

[Mesa-dev] [PATCH 34/40] st/dri: Don't close the drm fd on failure

2015-10-17 Thread Emil Velikov
Ported from an identically named commit in st/xa commit 35cf3831d71770211f29da6608313dc1f6213d7b Author: Thomas Hellstrom Date: Thu Jul 3 02:07:36 2014 -0700 st/xa: Don't close the drm fd on failure v2 Signed-off-by: Emil Velikov ---

[Mesa-dev] [PATCH 26/40] pipe-loader: don't mix code and variable declarations

2015-10-17 Thread Emil Velikov
We cannot use this C99 feature here quite yet, as the code needs to be ok with MSVC prior to 2013. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH 30/40] {auxiliary, targets}/vl: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
Analogous to previous commit. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/Makefile.am| 6 -- src/gallium/auxiliary/vl/vl_winsys_dri.c | 8 src/gallium/targets/omx/Makefile.am | 7 +-- src/gallium/targets/omx/target.c | 2

Re: [Mesa-dev] [PATCH] i965: silence incompatible pointer type warning

2015-10-17 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 39/40] targets/nine: remove unused static functions

2015-10-17 Thread Emil Velikov
Dead code since commit 8f50614910c40366d94964fe2c5da5772aff2f96 Cc: Axel Davy Cc: Tiziano Bacocco Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/drm.c | 36 --- 1 file changed, 36

[Mesa-dev] [PATCH 37/40] targets/nine: add note about fd owndership

2015-10-17 Thread Emil Velikov
Cc: Axel Davy Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/Makefile.am | 1 + src/gallium/targets/d3dadapter9/drm.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/gallium/targets/d3dadapter9/Makefile.am

[Mesa-dev] [PATCH 32/40] {st, targets}/nine: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
Analogous to previous commits. Cc: Axel Davy Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/Makefile.am | 13 - src/gallium/targets/d3dadapter9/drm.c | 24 +++- 2 files changed, 7 insertions(+),

[Mesa-dev] [PATCH 35/40] st/dri: NULL check the pscreen earlier

2015-10-17 Thread Emil Velikov
We delay the null check only to jump through hoops to work around that. Check early to make our lives easier. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/dri2.c | 22 -- src/gallium/state_trackers/dri/dri_screen.c | 5 -

[Mesa-dev] [PATCH 40/40] util: use RTLD_LOCAL with util_dl_open()

2015-10-17 Thread Emil Velikov
Otherwise we risk things blowing up due to conflicting symbols. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/util/u_dl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_dl.c b/src/gallium/auxiliary/util/u_dl.c

[Mesa-dev] [PATCH 33/40] target-helpers: remove inline_drm_helper.h

2015-10-17 Thread Emil Velikov
As of earlier all the targets use the non inline version. Don't forget to remove the function prototypes/declarations. Signed-off-by: Emil Velikov --- .../auxiliary/target-helpers/inline_drm_helper.h | 339 -

[Mesa-dev] [PATCH 36/40] auxiliary/vl: Don't close the drm fd on failure

2015-10-17 Thread Emil Velikov
Ported from an identically named commit in st/xa commit 35cf3831d71770211f29da6608313dc1f6213d7b Author: Thomas Hellstrom Date: Thu Jul 3 02:07:36 2014 -0700 st/xa: Don't close the drm fd on failure v2 Signed-off-by: Emil Velikov ---

[Mesa-dev] [PATCH 28/40] pipe-loader: add preliminary Android support

2015-10-17 Thread Emil Velikov
Add a 'static' pipe-loader build, which will be used with follow-up commits. Signed-off-by: Emil Velikov --- src/gallium/Android.mk | 1 + src/gallium/auxiliary/pipe-loader/Android.mk | 49 2 files changed, 50

[Mesa-dev] [PATCH 10/40] gallium: remove library_path argument from pipe_loader_create_screen()

2015-10-17 Thread Emil Velikov
Currently the location is determined at configure/build time and consistently copied across gallium. Just remove the extra argument, and use PIPE_SEARCH_DIR where appropriate. This will allow us to remove the duplication in the *configuration and *screen_create APIs by moving

[Mesa-dev] [PATCH 12/40] pipe-loader: add pipe_loader_sw_probe_init_common() helper

2015-10-17 Thread Emil Velikov
Allows us to fold the duplication in pipe_loader_sw_probe_*(). Cc: Tom Stellard Cc: Francisco Jerez Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 38 ++ 1 file

[Mesa-dev] [RFC PATCH 00/40] Rework/consolidate the pipe-loader business

2015-10-17 Thread Emil Velikov
Hi all, Here goes a series (which is slightly overdue), that reworks the target-helpers into a pipe-loader like interface. As such the state-tracker do not need to know that there is a difference between the two and it only uses the pipe-loader interface. As we have the chance to build the

[Mesa-dev] [PATCH 14/40] gallium: keep the libdrm link alongside libkmsdri.la

2015-10-17 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/Automake.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc index 095e6ec..6fe2e22 100644 --- a/src/gallium/Automake.inc +++ b/src/gallium/Automake.inc

[Mesa-dev] [PATCH 18/40] pipe-loader: dlopen/dlsym the pipe-driver at probe time

2015-10-17 Thread Emil Velikov
Rather than giving false hopes that things might work, just check at probe time. This allows us to remove the duplication and consolidate the code wrt the upcomming static pipe-loader. Cc: Tom Stellard Cc: Francisco Jerez Signed-off-by: Emil

[Mesa-dev] [PATCH 24/40] target-helpers: move the DRI specifics to the target

2015-10-17 Thread Emil Velikov
Rather than having all targets include the file, with only some defining the relevant guard macro, just move things where they are used. XXX: Can we use __alias__ ? Will it work considering the 'base' symbols are/should be private ? Signed-off-by: Emil Velikov ---

[Mesa-dev] [PATCH 22/40] pipe-loader: wire up the 'static' sw pipe-loader

2015-10-17 Thread Emil Velikov
Analogous to previous commit with a small catch. As the sw inline helpers are mere wrappers, and the screen <> winsys split is more prominent (with the latter not being part of the final pipe-driver), things will just work. Signed-off-by: Emil Velikov ---

[Mesa-dev] [PATCH 07/40] pipe-loader: add pipe_loader_sw_probe_kms() implementation

2015-10-17 Thread Emil Velikov
Will be used as a counterpart for target-helpers' kms_swrast_create_screen(). XXX: Do we need the extra define ? Signed-off-by: Emil Velikov --- configure.ac | 4 src/gallium/Automake.inc | 5 +

[Mesa-dev] [PATCH 13/40] pipe-loader: directly use pipe_loader_sw_probe_null() at probe time

2015-10-17 Thread Emil Velikov
Due to the nature of the other sw winsys' we cannot use them during the generic probe stage. As such there is little point in keeping the abstraction layer. Cc: Tom Stellard Cc: Francisco Jerez Signed-off-by: Emil Velikov

[Mesa-dev] [PATCH 25/40] target-helpers: add a non-inline drm_helper.h

2015-10-17 Thread Emil Velikov
Unlike the inline ones, we'd want to have an extern definition of the functions. This is required as with follow-up commits, we'll gradually start using the static pipe-loader. With the latter needing the symbols. These are copies directly from the inline version. XXX: Open to suggestions if we

[Mesa-dev] [PATCH 08/40] pipe-loader: remove HAVE_DRM_LOADER_GALLIUM and HAVE_PIPE_LOADER_DRM

2015-10-17 Thread Emil Velikov
... in favour of HAVE_LIBDRM. After all we solely want to build the code when the latter is available. In the not too distant future we will remove the libudev/sysfs dependency and simplify configure.ac even further. XXX: Check this wrt the previous 1-2 commits. Signed-off-by: Emil Velikov

[Mesa-dev] [PATCH 17/40] pipe-loader: annotate the ops as const data

2015-10-17 Thread Emil Velikov
Already defined as such in struct pipe_loader_device::ops. Cc: Tom Stellard Cc: Francisco Jerez Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 4 ++--

[Mesa-dev] [PATCH 21/40] pipe-loader: wire up the 'static' drm pipe-loader

2015-10-17 Thread Emil Velikov
Add a list of driver descriptors and select one from the list, during probe time. As we'll need to have all the driver pipe_foo_screen_create() functions provided externally (i.e. from another static lib) we need a separate (non-inline) drm_helper, which contains the function declarations. XXX:

[Mesa-dev] [PATCH 29/40] {st, targets}/dri: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
Covert DRI to use only the pipe-loader interface. With drisw_create_screen and kms_swrast_create_screen replaced by their pipe-loader equivalent, we can now drop them. Linking notes: - pipe-loader already links in the libloader - we need GALLIUM_PIPE_LOADER_WINSYS_LIBS for the sw winsys' XXX:

[Mesa-dev] [PATCH 31/40] {st, targets}/xa: use static/dynamic pipe-loader

2015-10-17 Thread Emil Velikov
Analogous to previous commits. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/xa/Makefile.am | 5 - src/gallium/state_trackers/xa/xa_tracker.c | 16 ++-- src/gallium/targets/xa/Makefile.am | 7 +--

[Mesa-dev] [PATCH 38/40] targets/nine: add note about messy header inclusion order

2015-10-17 Thread Emil Velikov
Cc: Axel Davy Signed-off-by: Emil Velikov --- src/gallium/targets/d3dadapter9/drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index dc040dc..c9559b9 100644 ---

[Mesa-dev] [PATCH 06/40] configure: use HAVE_DRISW_KMS when handling kms swrast

2015-10-17 Thread Emil Velikov
Using HAVE_DRI2 to manage it seems counter-intuitive. XXX: Do we really need this, keep it as is or just use HAVE_LIBDRM ? Signed-off-by: Emil Velikov --- configure.ac | 5 + src/gallium/Makefile.am | 2 +-

[Mesa-dev] [PATCH 09/40] targets/nine: remove the custom pipe-driver path management

2015-10-17 Thread Emil Velikov
Since the up-streaming of nine, the static target was used by default. The dynamic pipe-drivers being available only via manual tweak of configure.ac. As we'll be removing the library_path argument from the pipe-loader with follow-up commits, we can remove D3D9_DRIVERS_PATH/D3D9_DRIVERS_DIR.

[Mesa-dev] [PATCH 05/40] targets/nine: use the existing sw_screen_wrap() over our custom version

2015-10-17 Thread Emil Velikov
Cc: Axel Davy Signed-off-by: Emil Velikov --- .../auxiliary/target-helpers/inline_sw_helper.h| 27 -- src/gallium/targets/d3dadapter9/Makefile.am| 1 - src/gallium/targets/d3dadapter9/drm.c | 4 ++-- 3

[Mesa-dev] [PATCH 23/40] automake: remove no longer needed HAVE_LOADER_GALLIUM conditional

2015-10-17 Thread Emil Velikov
As of last few commits we have a static and dynamic pipe-loader. Either of which will be used with (almost) all targets.. We can look into allowing the user to select which way the targets are built, be that 'static for all' or 'per target' in follow up commits. After which we can look into

[Mesa-dev] [PATCH 03/40] pipe-loader: remove HAVE_PIPE_LOADER_foo function prototype guards

2015-10-17 Thread Emil Velikov
They serve little to no purpose, as we don't need any additional dependencies (headers and/or symbols). On the other hand dropping them will allow us to use GALLIUM_PIPE_LOADER_DEFINES in only one single place - the pipe-loader. XXX: Should we provide dummy definition(s) ? Signed-off-by: Emil

[Mesa-dev] [PATCH 27/40] pipe-loader: add preliminary scons support

2015-10-17 Thread Emil Velikov
Add a 'static' pipe-loader build, which will be used with follow-up commits. Signed-off-by: Emil Velikov --- src/gallium/SConscript| 1 + src/gallium/auxiliary/pipe-loader/Makefile.am | 2 ++ src/gallium/auxiliary/pipe-loader/SConscript | 34

[Mesa-dev] [PATCH 20/40] pipe-loader: add a dummy 'static' pipe-loader

2015-10-17 Thread Emil Velikov
It is to be used in contrast of the dynamic one. The state-tracker does not need to know if the pipe-driver is built into the final blob or a separate object. This will allow us to move the logic to the final step (in target) where the appropriate pipe-loader will be chosen. Cc: Tom Stellard

[Mesa-dev] [PATCH 15/40] pipe-loader: rework the sw backend

2015-10-17 Thread Emil Velikov
Move the winsys into the pipe-target, bla bla bla XXX: separate pipe-drivers are likely to be busted Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 94 +- src/gallium/include/state_tracker/sw_driver.h | 21

[Mesa-dev] [PATCH 02/40] gallium/trace: remove useless NULL check from trace_screen_create()

2015-10-17 Thread Emil Velikov
Currently every target makes sure that the screen is non-null prior to using the debug (trace including) wrappers. If that no longer holds true we want to know and fix this ASAP rather than silently bailing out. Signed-off-by: Emil Velikov ---

[Mesa-dev] [PATCH 01/40] configure: remove obsolete _CLIENT comment

2015-10-17 Thread Emil Velikov
The referenced variable(s) have been removed with commit abc20120e4a (automake: pipe-loader: remove the 'client' pipe-loader) Signed-off-by: Emil Velikov --- configure.ac | 5 - 1 file changed, 5 deletions(-) diff --git a/configure.ac b/configure.ac index

[Mesa-dev] [PATCH 04/40] automake: use GALLIUM_PIPE_LOADER_DEFINES only where applicable

2015-10-17 Thread Emil Velikov
As of last commit we no longer need the defines in order to have the function prototypes. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/Makefile.am | 1 - src/gallium/state_trackers/clover/Makefile.am | 1 -

Re: [Mesa-dev] MSVC, MinGW build break

2015-10-17 Thread Rob Clark
On Sat, Oct 17, 2015 at 12:36 PM, Brian Paul wrote: > On 10/17/2015 10:07 AM, Brian Paul wrote: >> >> On 10/17/2015 07:04 AM, Rob Clark wrote: >>> >>> On Fri, Oct 16, 2015 at 11:11 PM, Brian Paul wrote: Hi Rob, Your recent commit "nir:

Re: [Mesa-dev] [PATCH] radeonsi: add support for ARB_texture_view

2015-10-17 Thread Laurent Carlier
Le Saturday 17 October 2015, 15:09:13 Marek Olšák a écrit : > From: Marek Olšák > > All tests pass. We don't need to do much - just set CUBE if the view > target is CUBE or CUBE_ARRAY, otherwise set the resource target. > > The reason this is so simple can be that texture

Re: [Mesa-dev] [PATCH] radeonsi: add support for ARB_texture_view

2015-10-17 Thread Marek Olšák
On Sat, Oct 17, 2015 at 6:45 PM, Laurent Carlier wrote: > Le Saturday 17 October 2015, 15:09:13 Marek Olšák a écrit : >> From: Marek Olšák >> >> All tests pass. We don't need to do much - just set CUBE if the view >> target is CUBE or CUBE_ARRAY,

[Mesa-dev] [Bug 90542] [softpipe] piglit glsl-1.50-gs-mismatch-prim-type lines_adjacency regression

2015-10-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90542 Marek Olšák changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH] glsl: fix stream qualifier for blocks with an instance name

2015-10-17 Thread Timothy Arceri
This also removes the validation from the parser as it is not required and once arb_enhanced_layouts comes along we wont be able to do validation on the stream qualifier in the parser anyway as it adds constant expression support to the stream qualifier. Cc: Samuel Iglesias Gonsalvez

[Mesa-dev] Fuzz testing the stand alone glsl compiler

2015-10-17 Thread Steve Lynch
Hi, I've been using afl (http://lcamtuf.coredump.cx/afl/) on the standalone glsl compiler. It found four different crashes in the latest code in master and I have minimised the test cases that cause the crashes. I spent a couple of hours poking around but haven't managed to fix any of the

Re: [Mesa-dev] MSVC, MinGW build break

2015-10-17 Thread Rob Clark
On Fri, Oct 16, 2015 at 11:11 PM, Brian Paul wrote: > Hi Rob, > > Your recent commit "nir: remove dependency on glsl" broke the build for MSVC > and MinGW. > > For MSVC: > > [...] > Linking build\windows-x86-debug\gallium\tests\graw\occlusion-query.exe ... > Linking

[Mesa-dev] [PATCH] radeonsi: add support for ARB_texture_view

2015-10-17 Thread Marek Olšák
From: Marek Olšák All tests pass. We don't need to do much - just set CUBE if the view target is CUBE or CUBE_ARRAY, otherwise set the resource target. The reason this is so simple can be that texture instructions have a greater effect on the target than the sampler view.

Re: [Mesa-dev] [PATCH] vbo: reduce number of vertex buffer mappings for vertex attributes

2015-10-17 Thread Marek Olšák
This looks like a sensible thing to do, but I don't remember all the details of the vbo module. Reviewed-by: Marek Olšák Marek On Thu, Oct 15, 2015 at 9:02 PM, Brian Paul wrote: > Whenever we got a glColor, glNormal, glTexCoord, etc. call outside a >

Re: [Mesa-dev] [PATCH 09/10] vbo: fix GL_LINE_LOOP stray line bug

2015-10-17 Thread Roland Scheidegger
FWIW this probably fixes https://bugs.freedesktop.org/show_bug.cgi?id=49779 and https://bugs.freedesktop.org/show_bug.cgi?id=28130 (in contrast to 81174 which as you noted suffers both from a vbo and draw issue). (I believe the issue in draw is pretty much the same, since things are split with too

Re: [Mesa-dev] [PATCH] r600g: Implement ARB_texture_view

2015-10-17 Thread Marek Olšák
Reviewed-by: Marek Olšák If you're interested, feel free to check out my radeonsi patch on mesa-dev. It's simpler. Marek On Fri, Oct 16, 2015 at 1:53 AM, Glenn Kennard wrote: > Signed-off-by: Glenn Kennard > --- > See

Re: [Mesa-dev] [PATCH 1/5] main: Use NumUniformBlocks to count UBOs

2015-10-17 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák On Fri, Oct 16, 2015 at 11:58 AM, Iago Toral Quiroga wrote: > Now that we have separate index spaces for UBOs and SSBOs we do not need > to iterate through BufferInterfaceBlocks any more, we can just take the >

Re: [Mesa-dev] [PATCH] r600g: Pass conservative depth parameters to hw

2015-10-17 Thread Alex Deucher
On Fri, Oct 16, 2015 at 6:52 PM, Glenn Kennard wrote: > Supported on R700 and up. > > Signed-off-by: Glenn Kennard > --- > Not exactly a commonly used extension, but might as well set the > hardware registers rather than just dropping the hint on

Re: [Mesa-dev] [PATCH 02/10] vbo: remove unneeded ctx parameter for merge_prims()

2015-10-17 Thread Marek Olšák
Patches 2-9: Reviewed-by: Marek Olšák I can't comment on 10 without some additional research. Maybe someone else will review it. Marek On Fri, Oct 16, 2015 at 11:25 PM, Brian Paul wrote: > --- > src/mesa/vbo/vbo_save_api.c | 5 ++--- > 1 file changed,

[Mesa-dev] [PATCH] st/mesa: fix clip state dependencies

2015-10-17 Thread Marek Olšák
From: Marek Olšák This allows removing FLUSH_VERTICES in MatrixMode. Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_atom_clip.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_clip.c

Re: [Mesa-dev] [PATCH] r600g: Pass conservative depth parameters to hw

2015-10-17 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Sat, Oct 17, 2015 at 12:52 AM, Glenn Kennard wrote: > Supported on R700 and up. > > Signed-off-by: Glenn Kennard > --- > Not exactly a commonly used extension, but might as well set the >

Re: [Mesa-dev] [PATCH] nvc0: do not bind input params at compute state init on Fermi

2015-10-17 Thread Ilia Mirkin
This seems surprising... could I convince you to trace a test that executes both a graphics and compute pipeline, which both use (different) uniforms? Anyways, this patch is fine for now, this is Reviewed-by: Ilia Mirkin On Sat, Oct 17, 2015 at 12:19 PM, Samuel Pitoiset

[Mesa-dev] [PATCH] draw: fix splitting of line loops

2015-10-17 Thread Brian Paul
When the draw module splits long line loops, the sections are emitted as line strips. But the primitive type wasn't set correctly so each section was being drawn as a loop, introducing extra line segments. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81174 ---

[Mesa-dev] [Bug 81174] Gallium: GL_LINE_LOOP broken with more than 512 points

2015-10-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=81174 --- Comment #19 from Brian Paul --- (In reply to Brian Paul from comment #16) > Unfortunately, after fixing the VBO code, there's still a bug somewhere in > the gallium 'draw' code. See comments in the patch series for more

Re: [Mesa-dev] [PATCH 13/16] nvc0: enable compute support by default on Fermi

2015-10-17 Thread Jan Vesely
Does this mean it should be possible to hook up clover with nouveau? Jan On Fri, 2015-10-16 at 19:22 +0200, Samuel Pitoiset wrote: > Compute support was not enabled by default because weird effects > on 3D state happened, but I can't reproduce them anymore. > > This also enables MP performance

Re: [Mesa-dev] [PATCH 13/16] nvc0: enable compute support by default on Fermi

2015-10-17 Thread Ilia Mirkin
"compute" in this context is "initialize the compute engine so that kernels may be executed", not "convert the llvm ir bitcode that clover hands us into nv50 ir". The former has actually been around for years, Samuel just fixed up a few fermi-specific bits. On Sat, Oct 17, 2015 at 3:11 PM, Jan

Re: [Mesa-dev] [PATCH v2] r600g: Pass conservative depth parameters to hw

2015-10-17 Thread Marek Olšák
Reviewed-by: Marek Olšák On Sat, Oct 17, 2015 at 4:53 PM, Glenn Kennard wrote: > Supported on R700 and up. > > Signed-off-by: Glenn Kennard > --- > v2: > Use correct register for R700, set from r600_emit_db_misc_state >

Re: [Mesa-dev] [PATCH 13/16] nvc0: enable compute support by default on Fermi

2015-10-17 Thread Jan Vesely
On Sat, 2015-10-17 at 15:24 -0400, Ilia Mirkin wrote: > "compute" in this context is "initialize the compute engine so that > kernels may be executed", not "convert the llvm ir bitcode that > clover > hands us into nv50 ir". The former has actually been around for > years, > Samuel just fixed up a

Re: [Mesa-dev] [PATCH 13/16] nvc0: enable compute support by default on Fermi

2015-10-17 Thread Ilia Mirkin
On Sat, Oct 17, 2015 at 4:24 PM, Jan Vesely wrote: > On Sat, 2015-10-17 at 15:24 -0400, Ilia Mirkin wrote: >> "compute" in this context is "initialize the compute engine so that >> kernels may be executed", not "convert the llvm ir bitcode that >> clover >> hands us into

Re: [Mesa-dev] [PATCH 13/16] nvc0: enable compute support by default on Fermi

2015-10-17 Thread Ilia Mirkin
On Sat, Oct 17, 2015 at 4:31 PM, Ilia Mirkin wrote: > On Sat, Oct 17, 2015 at 4:24 PM, Jan Vesely wrote: >> On Sat, 2015-10-17 at 15:24 -0400, Ilia Mirkin wrote: >>> "compute" in this context is "initialize the compute engine so that >>> kernels may

[Mesa-dev] [PATCH v2] r600g: Pass conservative depth parameters to hw

2015-10-17 Thread Glenn Kennard
Supported on R700 and up. Signed-off-by: Glenn Kennard --- v2: Use correct register for R700, set from r600_emit_db_misc_state Added ps_conservative_z field to r600_db_misc_state Shrunk ps_conservative_z to uint8 since only 2 bits are needed Thanks Alex for noting

Re: [Mesa-dev] [PATCH] st/mesa: fix clip state dependencies

2015-10-17 Thread Brian Paul
On 10/17/2015 06:23 AM, Marek Olšák wrote: From: Marek Olšák This allows removing FLUSH_VERTICES in MatrixMode. Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_atom_clip.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [Mesa-dev] MSVC, MinGW build break

2015-10-17 Thread Brian Paul
On 10/17/2015 07:04 AM, Rob Clark wrote: On Fri, Oct 16, 2015 at 11:11 PM, Brian Paul wrote: Hi Rob, Your recent commit "nir: remove dependency on glsl" broke the build for MSVC and MinGW. For MSVC: [...] Linking

Re: [Mesa-dev] MSVC, MinGW build break

2015-10-17 Thread Rob Clark
On Sat, Oct 17, 2015 at 12:17 PM, Brian Paul wrote: > On 10/17/2015 10:13 AM, Rob Clark wrote: >> >> On Sat, Oct 17, 2015 at 12:07 PM, Brian Paul wrote: >>> >>> On 10/17/2015 07:04 AM, Rob Clark wrote: On Fri, Oct 16, 2015 at 11:11 PM, Brian

Re: [Mesa-dev] MSVC, MinGW build break

2015-10-17 Thread Brian Paul
On 10/17/2015 10:07 AM, Brian Paul wrote: On 10/17/2015 07:04 AM, Rob Clark wrote: On Fri, Oct 16, 2015 at 11:11 PM, Brian Paul wrote: Hi Rob, Your recent commit "nir: remove dependency on glsl" broke the build for MSVC and MinGW. For MSVC: [...] Linking

[Mesa-dev] [PATCH] nvc0: do not bind input params at compute state init on Fermi

2015-10-17 Thread Samuel Pitoiset
It looks like binding a constant buffer on compute overwrites the 3D state. To avoid that, we already re-bind all the 3D constant buffers after launching a compute grid but this is not enough. Binding the constant buffer of input parameters for the compute state at initialization corrupts the 3D

Re: [Mesa-dev] MSVC, MinGW build break

2015-10-17 Thread Rob Clark
On Sat, Oct 17, 2015 at 12:07 PM, Brian Paul wrote: > On 10/17/2015 07:04 AM, Rob Clark wrote: >> >> On Fri, Oct 16, 2015 at 11:11 PM, Brian Paul wrote: >>> >>> Hi Rob, >>> >>> Your recent commit "nir: remove dependency on glsl" broke the build for >>> MSVC

Re: [Mesa-dev] [PATCH 09/10] vbo: fix GL_LINE_LOOP stray line bug

2015-10-17 Thread Brian Paul
On 10/17/2015 06:20 AM, Roland Scheidegger wrote: FWIW this probably fixes https://bugs.freedesktop.org/show_bug.cgi?id=49779 and https://bugs.freedesktop.org/show_bug.cgi?id=28130 (in contrast to 81174 which as you noted suffers both from a vbo and draw issue). (I believe the issue in draw is

[Mesa-dev] [Bug 28130] vbo: premature flushing breaks GL_LINE_LOOP

2015-10-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28130 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 49779] Extra line segments in GL_LINE_LOOP

2015-10-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49779 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 81174] Gallium: GL_LINE_LOOP broken with more than 512 points

2015-10-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=81174 Brian Paul changed: What|Removed |Added CC||dongsheng.x...@intel.com

[Mesa-dev] [Bug 81174] Gallium: GL_LINE_LOOP broken with more than 512 points

2015-10-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=81174 Brian Paul changed: What|Removed |Added CC||ideasma...@gmail.com

Re: [Mesa-dev] MSVC, MinGW build break

2015-10-17 Thread Brian Paul
On 10/17/2015 10:13 AM, Rob Clark wrote: On Sat, Oct 17, 2015 at 12:07 PM, Brian Paul wrote: On 10/17/2015 07:04 AM, Rob Clark wrote: On Fri, Oct 16, 2015 at 11:11 PM, Brian Paul wrote: Hi Rob, Your recent commit "nir: remove dependency on glsl"

Re: [Mesa-dev] [PATCH 02/10] vbo: remove unneeded ctx parameter for merge_prims()

2015-10-17 Thread Brian Paul
On 10/17/2015 08:35 AM, Marek Olšák wrote: Patches 2-9: Reviewed-by: Marek Olšák I can't comment on 10 without some additional research. Maybe someone else will review it. Thanks for the reviews. I think one of my coworkers can take a look. I tested with a modified

[Mesa-dev] [PATCH] glsl: fix SSBO regression

2015-10-17 Thread Timothy Arceri
Fixes regression cased by bb5aeb854915ba67abc56257f830d002c956439e We don't care about the swizzle when building the name so just skip over it. --- New piglit test: http://patchwork.freedesktop.org/patch/62111/ src/glsl/lower_ubo_reference.cpp | 2 ++ 1 file changed, 2 insertions(+) diff