Re: [Mesa-dev] [PATCH] mesa: Expose GL_OES_texture_float and GL_OES_texture_half_float.

2014-05-18 Thread Rogovin, Kevin
Hi, Each of the four extensions are right now set to be advertised if and only if a GL context would advertise GL_ARB_texture_float: { "GL_OES_texture_float", o(ARB_texture_float), ES2,2005 }, { "GL_OES_texture_half_float",

[Mesa-dev] [Bug 78842] [swrast] piglit fcc-read-after-clear copy rb regression

2014-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78842 Kenneth Graunke changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|mesa-dev@l

[Mesa-dev] [Bug 78546] [swrast] piglit copyteximage-border regression

2014-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78546 Kenneth Graunke changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|mesa-dev@l

[Mesa-dev] [Bug 78843] [swrast] piglit copyteximage 1D regression

2014-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78843 Kenneth Graunke changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|mesa-dev@l

[Mesa-dev] [PATCH 1/4] Revert "i965: Don't _swrast_BlitFramebuffer when doing CopyTexSubImage."

2014-05-18 Thread Kenneth Graunke
This reverts commit bd44ac8b5ca08016bb064b37edaec95eccfdbcd5. Fixes: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78842 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78843 Re-breaks: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77705 but that will be fixed properly in

[Mesa-dev] [PATCH 3/4] meta: Split _swrast_BlitFramebuffer out of the meta blit path.

2014-05-18 Thread Kenneth Graunke
Separating the software fallbacks from the rest of the meta path (which is usually hardware accelerated) gives callers better control over their blitting options. For example, i965 might want to try meta blit, hardware blits, then swrast as a last resort. Splitting it makes that possible. This u

[Mesa-dev] [PATCH 2/4] meta: Drop unnecessary early returns in _mesa_meta_BlitFramebuffer.

2014-05-18 Thread Kenneth Graunke
These aren't necessary - all of the following code is predicated on mask being non-zero, so no code will get executed anyway. Signed-off-by: Kenneth Graunke Cc: "10.2" --- src/mesa/drivers/common/meta_blit.c | 8 1 file changed, 8 deletions(-) diff --git a/src/mesa/drivers/common/meta

[Mesa-dev] [PATCH 4/4] meta: Avoid _swrast_BlitFramebuffer in the meta CopyTexSubImage code.

2014-05-18 Thread Kenneth Graunke
This is a replacement for bd44ac8b5ca08016bb064b37edaec95eccfdbcd5 that should actually work. Fixes Piglit's copyteximage-border on swrast, as well as one of es3conform's packed_pixels_pixelstore test. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78546 Bugzilla: https://bugs.freedesktop

Re: [Mesa-dev] [PATCH 05/12] gallivm: Use LLVM global context.

2014-05-18 Thread Mathias Fröhlich
Hi Jose, I tried to get my local llvm install again to a point where I can see backtrace information, but still failed to get valgrind/massif to print these nice backtraces. All of the llvm addresses are not resolved so far. But a appart from that which gl example/test program do you run to see

[Mesa-dev] [Bug 78771] egl not works on 10.0.x and 10.1.x with black screen

2014-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78771 --- Comment #9 from qwang13 --- Created attachment 99295 --> https://bugs.freedesktop.org/attachment.cgi?id=99295&action=edit configure log of mesa building This is the configure log for mesa building. -- You are receiving this mail because:

Re: [Mesa-dev] [PATCH] targets/opencl: Fix (static) linking with LLVM

2014-05-18 Thread Michel Dänzer
On 18.05.2014 18:37, Kai Wasserbäch wrote: > > And instead of just not starting, my X starts crashing, whenever > libGL fails to load a (32 bit) driver. FWIW, some potential alternatives for avoiding the X crashes: With current xserver Git master, you can pass the -iglx parameter to Xorg to proh

[Mesa-dev] [Bug 78842] [swrast] piglit fcc-read-after-clear copy rb regression

2014-05-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78842 --- Comment #1 from Ian Romanick --- This patch is also on the 10.2 branch... and I verified that the test also fails there. -- You are receiving this mail because: You are the assignee for the bug. _

Re: [Mesa-dev] [PATCH 2/3] gallium/egl: st_profiles are build time decision, treat them as such

2014-05-18 Thread Chia-I Wu
On Tue, May 13, 2014 at 10:35 AM, Emil Velikov wrote: > On 13/05/14 02:57, Chia-I Wu wrote: >> On Sat, May 10, 2014 at 10:41 AM, Emil Velikov >> wrote: >>> The profiles are present depending on the defines at build time. >>> Drop the extra functions and feed the defines directly into the >>> sta

Re: [Mesa-dev] [PATCH v2 1/3] Add support for swrast to the DRM EGL platform

2014-05-18 Thread Giovanni Campagna
2014-05-15 2:47 GMT+02:00 Emil Velikov : > On 05/05/14 17:07, Giovanni Campagna wrote: >> From: Giovanni Campagna >> >> Turn GBM into a swrast loader (providing putimage/getimage backed >> by a dumb KMS buffer). This allows to run KMS+DRM GL applications >> (such as weston or mutter-wayland) unmod

Re: [Mesa-dev] [PATCH] glx: Report the current refresh rate for GetMscRateOML

2014-05-18 Thread Jamey Sharp
This seems like an excellent plan. `git diff -w` makes it easy to see that this patch doesn't change Mesa's behavior if the RandR headers aren't available, so that's great. The RandR side looks plausible, but I'm not familiar enough with the extension to review it in detail. I'm a little uncomfo

Re: [Mesa-dev] [PATCH] nvc0: maxwell has a new video engine, don't return a decoder object

2014-05-18 Thread Ilia Mirkin
On Sun, May 18, 2014 at 9:06 PM, Ben Skeggs wrote: > On Mon, May 19, 2014 at 12:16 AM, Ilia Mirkin wrote: >> Signed-off-by: Ilia Mirkin >> --- >> src/gallium/drivers/nouveau/nvc0/nvc0_video.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_vi

Re: [Mesa-dev] [PATCH] nvc0: maxwell has a new video engine, don't return a decoder object

2014-05-18 Thread Ben Skeggs
On Mon, May 19, 2014 at 12:16 AM, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin > --- > src/gallium/drivers/nouveau/nvc0/nvc0_video.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_video.c > b/src/gallium/drivers/nouveau/nvc0/nvc0_video.c > i

[Mesa-dev] [PATCH 1/2] nv50/ir: fix s32 x s32 -> high s32 multiply logic

2014-05-18 Thread Ilia Mirkin
Retrieving the high 32 bits of a signed multiply is rather annoying. It appears that the simplest way to do this is to compute the absolute value of the arguments, and perform a u32 x u32 -> u64 operation. If the arguments' signs differ, then negate the result. Since there is no u64 support in the

[Mesa-dev] [PATCH 2/2] nv50/ir: fix constant folding for OP_MUL subop HIGH

2014-05-18 Thread Ilia Mirkin
These instructions can come in either through IMUL_HI/UMUL_HI TGSI opcodes, or from OP_DIV constant folding. Also make sure that the constant foldings which delete the original instruction still get counted as having done something. Signed-off-by: Ilia Mirkin Cc: "10.1 10.2" --- .../drivers/no

Re: [Mesa-dev] [PATCH v2 1/3] Add support for swrast to the DRM EGL platform

2014-05-18 Thread Emil Velikov
On 18/05/14 13:50, Giovanni Campagna wrote: > 2014-05-15 2:47 GMT+02:00 Emil Velikov : >> On 05/05/14 17:07, Giovanni Campagna wrote: >>> From: Giovanni Campagna >>> >>> Turn GBM into a swrast loader (providing putimage/getimage backed >>> by a dumb KMS buffer). This allows to run KMS+DRM GL appli

[Mesa-dev] [PATCH] nvc0: maxwell has a new video engine, don't return a decoder object

2014-05-18 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/nvc0/nvc0_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_video.c b/src/gallium/drivers/nouveau/nvc0/nvc0_video.c index 5871f59..c9ab13a 100644 --- a/src/gallium/drivers/nouveau/nvc0/n

Re: [Mesa-dev] [PATCH 16/23] targets/vdpau: convert to static and shared pipe-drivers

2014-05-18 Thread Jonathan Gray
On Sun, May 18, 2014 at 09:44:00AM +0100, Emil Velikov wrote: > On 18/05/14 08:41, Jonathan Gray wrote: > > On Sun, May 18, 2014 at 08:07:38AM +0100, Emil Velikov wrote: > >> Create a single library containing the state-tracker etc. > >> thus have a smaller overall size footprint of mesa. > >> > >>

Re: [Mesa-dev] [PATCH] targets/opencl: Fix (static) linking with LLVM

2014-05-18 Thread Emil Velikov
On 18/05/14 10:37, Kai Wasserbäch wrote: > Without this, I get linking failures (static linking). > > The static linking is sort of required for me, because otherwise Steam and > applications using the Steam runtime regularily fail because my LLVM was > compiled and linked against a newer libgcc_s

[Mesa-dev] [PATCH] targets/opencl: Fix (static) linking with LLVM

2014-05-18 Thread Kai Wasserbäch
Without this, I get linking failures (static linking). The static linking is sort of required for me, because otherwise Steam and applications using the Steam runtime regularily fail because my LLVM was compiled and linked against a newer libgcc_s, libstdc++, etc. and uses features from those newe

Re: [Mesa-dev] [PATCH 18/23] targets/omx: convert to static/pipe-loader

2014-05-18 Thread Emil Velikov
On 18/05/14 09:14, Christian König wrote: > Am 18.05.2014 09:07, schrieb Emil Velikov: >> Similar to previous two commits. >> >> TODO: >> - Correctly set the role and profile names. >> >> Christian, >> >> * Recommendation about the following names ? >> - OMX_VID_{ENC,DEC}_BASE_NAME > > OMX.mes

Re: [Mesa-dev] [PATCH 16/23] targets/vdpau: convert to static and shared pipe-drivers

2014-05-18 Thread Emil Velikov
On 18/05/14 08:41, Jonathan Gray wrote: > On Sun, May 18, 2014 at 08:07:38AM +0100, Emil Velikov wrote: >> Create a single library containing the state-tracker etc. >> thus have a smaller overall size footprint of mesa. >> >> The driver can be built with the relevant pipe-drivers >> statically link

Re: [Mesa-dev] [PATCH 18/23] targets/omx: convert to static/pipe-loader

2014-05-18 Thread Christian König
Am 18.05.2014 09:07, schrieb Emil Velikov: Similar to previous two commits. TODO: - Correctly set the role and profile names. Christian, * Recommendation about the following names ? - OMX_VID_{ENC,DEC}_BASE_NAME OMX.mesa.video_(decoder|encoder) - OMX_VID_{ENC,DEC}_{MPEG2,H264}_NAME

Re: [Mesa-dev] [PATCH 16/23] targets/vdpau: convert to static and shared pipe-drivers

2014-05-18 Thread Jonathan Gray
On Sun, May 18, 2014 at 08:07:38AM +0100, Emil Velikov wrote: > Create a single library containing the state-tracker etc. > thus have a smaller overall size footprint of mesa. > > The driver can be built with the relevant pipe-drivers > statically linked in, or loaded as shared modules. > Currentl

[Mesa-dev] [PATCH 11/23] target-helpers: introduce dd_configuration()

2014-05-18 Thread Emil Velikov
Some drivers do not provide any configuration parameters those are left as is. A handful of targets provide share_fd (dmabuf) bug lack throttle. This patch provides the latter in the cases where it was left out - ilo, nouveau and r300. Signed-off-by: Emil Velikov --- .../auxiliary/target-helpers

[Mesa-dev] [PATCH 10/23] target-helpers: add dd_create_screen() helper

2014-05-18 Thread Emil Velikov
Will be used by gallium targets that statically link the pipe-drivers in the final library. Provides identical functionality to device_descriptor.create_screan. Signed-off-by: Emil Velikov --- .../auxiliary/target-helpers/inline_drm_helper.h | 218 + src/gallium/include/sta

[Mesa-dev] [PATCH 18/23] targets/omx: convert to static/pipe-loader

2014-05-18 Thread Emil Velikov
Similar to previous two commits. TODO: - Correctly set the role and profile names. Christian, * Recommendation about the following names ? - OMX_VID_{ENC,DEC}_BASE_NAME - OMX_VID_{ENC,DEC}_{MPEG2,H264}_NAME * (Related) We do we strcpy string literals at vid_{enc,dec}_LoaderComponent. IMHO we

[Mesa-dev] [PATCH 16/23] targets/vdpau: convert to static and shared pipe-drivers

2014-05-18 Thread Emil Velikov
Create a single library containing the state-tracker etc. thus have a smaller overall size footprint of mesa. The driver can be built with the relevant pipe-drivers statically linked in, or loaded as shared modules. Currently we default to static link. Add SPLIT_TARGETS to guard the other VL targ

[Mesa-dev] [PATCH 22/23] targets/opencl: initial pass of opencl-static

2014-05-18 Thread Emil Velikov
Currently it only moves variables around to ease future integration of statically linked drivers in opencl. Needs some work on the state-tracker. Cc: Francisco Jerez Signed-off-by: Emil Velikov --- src/gallium/state_trackers/clover/Makefile.am | 7 -- src/gallium/targets/opencl/Makefile.a

[Mesa-dev] [PATCH 17/23] targets/xvmc: is it static or pipe-loader ?

2014-05-18 Thread Emil Velikov
Similar to previous commit now one can select if they want a VL (libXvMC) library that has the pipe-driver statically linked (the default) or not. Symlink creation is rather messy and will needs update for non-linux platforms. Cc: Jonathan Gray Signed-off-by: Emil Velikov --- configure.ac

[Mesa-dev] [PATCH 13/23] automake: introduce helper variables

2014-05-18 Thread Emil Velikov
- megadrivers - static_target{lib_deps,cppflags} - gallium_pipe_loader_winsys_libs Will be used in upcomming commits to introduce static/pipe-loader variation to all targets and to reduce duplication in the build. Signed-off-by: Emil Velikov --- src/gallium/Automake.inc | 120 ++

[Mesa-dev] [PATCH 12/23] target-helpers: add dd_driver_name()

2014-05-18 Thread Emil Velikov
To be used by the dri state-tracker. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/target-helpers/inline_drm_helper.h | 7 +++ src/gallium/include/state_tracker/drm_driver.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/gallium/auxiliary/target-helpers/inline_d

[Mesa-dev] [PATCH 21/23] targets/egl-static: use inline_drm_helper and Automake.inc helpers

2014-05-18 Thread Emil Velikov
Update all three build systems, and add freedreno to the android build. Pending future work on the ST we can convert egl-static to provide either static or dynamic access to the pipe-drivers. There is no functional change with this patch. Cc: Chia-I Wu Signed-off-by: Emil Velikov --- configure

[Mesa-dev] [PATCH 19/23] targets/xa: provide alternative(static) xa target

2014-05-18 Thread Emil Velikov
Now we can build the xa target (libxatracker) with either static pipe-drivers or shared ones. Currently we default to static. Drop all the unused CFLAGS/CPPFLAGS. Rename GALLIUM_VIDEO_CFLAGS to GALLIUM_TARGET_CFLAGS and use it across targets. Cc: Jakob Bornecrantz Cc: Rob Clark Cc: Thomas Hells

[Mesa-dev] [PATCH 07/23] targets/pipe-loader: add sw/wrapper to vmwgfx and i915

2014-05-18 Thread Emil Velikov
To match their original dri-* targets, respectively. Signed-off-by: Emil Velikov --- src/gallium/targets/pipe-loader/pipe_i915.c | 3 +++ src/gallium/targets/pipe-loader/pipe_vmwgfx.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/gallium/targets/pipe-loader/pipe_i915.c b/src/gal

[Mesa-dev] [PATCH 15/23] configure: add HAVE_GALLIUM_STATIC_TARGETS

2014-05-18 Thread Emil Velikov
Will be used to control the linking mode of pipe-drivers in gallium targets. XXX: Do we want to expose this via configure option ? I'm personally inclined to use pipe-drivers despite the unstable interface between them and the rest of mesa. Signed-off-by: Emil Velikov --- configure.ac | 3 +++

[Mesa-dev] [PATCH 08/23] targets/pipe-loader: add driver specific drm_configuration

2014-05-18 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/targets/pipe-loader/pipe_nouveau.c | 25 - src/gallium/targets/pipe-loader/pipe_r300.c | 25 - src/gallium/targets/pipe-loader/pipe_r600.c | 25 - src/gallium/targets/pipe-

[Mesa-dev] [PATCH 09/23] target-helpers: add a note about debug wrappers

2014-05-18 Thread Emil Velikov
If memory serves me right, at least one debug wrapper does not return the base screen on failure. Audit all the helper drivers to be consistent throughout. Signed-off-by: Emil Velikov --- src/gallium/auxiliary/target-helpers/inline_debug_helper.h | 4 1 file changed, 4 insertions(+) diff -

[Mesa-dev] [PATCH 20/23] targets/gbm: convert to static/pipe-loader

2014-05-18 Thread Emil Velikov
Move the gbm "target" code to the state-tracker, similar to other - dri, omx, vdpau... ST. Cc: Chia-I Wu Signed-off-by: Emil Velikov --- src/gallium/state_trackers/gbm/Makefile.am | 10 ++- src/gallium/state_trackers/gbm/gbm_drm.c | 65 ++--- .../state_trackers/gbm

[Mesa-dev] [PATCH 04/23] pipe-loader: note that we leak pipe_loader_drm_device->base->driver_name

2014-05-18 Thread Emil Velikov
The string is malloc'd (strdup) in loader_get_driver_for_fd(). Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loa

[Mesa-dev] [PATCH 14/23] targets: use GALLIUM_PIPE_LOADER_WINSYS_LIB_DEPS

2014-05-18 Thread Emil Velikov
Drop ~50 lines of buildsystem mayhem. Signed-off-by: Emil Velikov --- src/gallium/targets/gbm/Makefile.am| 14 +- src/gallium/targets/opencl/Makefile.am | 18 -- src/gallium/targets/xa/Makefile.am | 14 +- src/gallium/tests/trivial/Makefile.am | 1

[Mesa-dev] [PATCH 03/23] scons: remove dri-i915 build target

2014-05-18 Thread Emil Velikov
Unmaintained and broken. Cc: Jakob Bornecrantz Signed-off-by: Emil Velikov --- scons/gallium.py | 1 - src/gallium/SConscript| 9 - src/gallium/targets/dri-i915/SConscript | 29 - src/gallium/targets/egl-static

[Mesa-dev] [PATCH 05/23] pipe-loader: add pipe_loader_ops::configuration()

2014-05-18 Thread Emil Velikov
Required for the dri state-tracker. Will be used to retrieve driver specific configuration parameters: - share_fd (dmabuf) capability - throttle Signed-off-by: Emil Velikov --- src/gallium/auxiliary/pipe-loader/pipe_loader.c| 7 +++ src/gallium/auxiliary/pipe-loader/pipe_loader.h|

[Mesa-dev] [PATCH 06/23] targets/pipe-loader: link sw-wrapper and softpipe for svga/i915

2014-05-18 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gallium/targets/pipe-loader/Makefile.am | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am index 3280694..68d0424 100644 -

[Mesa-dev] [PATCH 01/23] configure: error out when building opencl without LLVM

2014-05-18 Thread Emil Velikov
Cc: Tom Stellard Cc: "10.1 10.2" Signed-off-by: Emil Velikov --- configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 4e4d761..ed80cd9 100644 --- a/configure.ac +++ b/configure.ac @@ -1386,6 +1386,10 @@ if test "x$enable_opencl" = xyes; then

[Mesa-dev] [PATCH 0/23] megadriver/pipe-loader-to-all

2014-05-18 Thread Emil Velikov
Hi all Update of the megadriver/pipe-loader-to-all series. What & Why: Allow one to link every driver selected at configure with the target library, or even to allow them to use shared pipe-driver. Less duplication - rather than shipping three identical radeon winsys, 8 copies of the dri ST, 3x

[Mesa-dev] [PATCH 02/23] targets/egl-static: add missing line break in ldflags

2014-05-18 Thread Emil Velikov
Accidently omitted by commit 7b7944ee1cedeaf. Cc: "10.2" Signed-off-by: Emil Velikov --- src/gallium/targets/egl-static/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/targets/egl-static/Makefile.am b/src/gallium/targets/egl-static/Makefile.am index