Re: [Mesa-dev] [PATCH 2/2] glx/dri2: Add support for adaptive vsync

2014-02-12 Thread Eric Anholt
Lauri Kasanen writes: > On Thu, 2 Jan 2014 11:20:13 +0200 > Lauri Kasanen wrote: > >> On Sun, 15 Dec 2013 12:38:28 +0200 >> Lauri Kasanen wrote: >> >> > There is a GLX extension for this behavior, glx_swap_control_tear, which >> > mesa doesn't >> > support ATM. But as usual, even after it bec

Re: [Mesa-dev] [PATCH 2/2] glx/dri2: Add support for adaptive vsync

2014-02-12 Thread Lauri Kasanen
On Wed, 12 Feb 2014 00:07:43 -0800 Eric Anholt wrote: > >> On Sun, 15 Dec 2013 12:38:28 +0200 > >> Lauri Kasanen wrote: > >> > >> > There is a GLX extension for this behavior, glx_swap_control_tear, which > >> > mesa doesn't > >> > support ATM. But as usual, even after it becomes supported, th

Re: [Mesa-dev] [PATCH v2] gallium makefiles: use a linker script for building dri drivers

2014-02-12 Thread Maarten Lankhorst
op 12-02-14 08:27, Christian König schreef: Am 12.02.2014 03:50, schrieb Michel Dänzer: On Die, 2014-02-11 at 17:28 +0100, Maarten Lankhorst wrote: Only export __driDriverExtensions by default, and radeon_drm_winsys_create on radeons. Remove -Bsymbolic which should no longer be needed. Is ther

Re: [Mesa-dev] Flatland

2014-02-12 Thread Kenneth Graunke
On 02/06/2014 09:34 PM, Connor Abbott wrote: > Hi, > > So I believe that we can all agree that the tree-based representation > that GLSL IR currently uses for shaders needs to go. [snip] Hi Connor! I agree 100%. The current tree IR is nice as a simplified AST of sorts, but it's really not at al

Re: [Mesa-dev] Mesa installation - Facing problems..

2014-02-12 Thread Kenneth Graunke
On 02/11/2014 02:41 AM, Sathishkumar Sivagurunathan wrote: > Hi, > > I am trying to install MESA libraries. I am facing a few issues with > the installation. > > Can someone help me in this.. > > 1)I am running the following command. > ./autogen.sh --prefix=/usr --enable-gles2 --

[Mesa-dev] [PATCH 1/3] radeon/winsys: add VCE support v4

2014-02-12 Thread Christian König
From: Christian König v2: add fw version query v3: add README.VCE v4: avoid error msg when kernel doesn't support it Signed-off-by: Christian König --- docs/README.VCE | 43 +++ src/gallium/winsys/radeon/drm/radeon_drm_cs.c | 10 ++

[Mesa-dev] [PATCH 2/3] radeon/vce: initial VCE support v8

2014-02-12 Thread Christian König
From: Christian König v2 (chk): revert feedback buffer hack v3 (slava): fixed bitstream size calculation v4 (chk): always create buffers in the right domain v5 (chk): flush async v6 (chk): rework fw interface add version check v7 (leo): implement cropping support v8 (chk): add hw checks Signed-o

[Mesa-dev] [PATCH 3/3] st/omx: initial OpenMAX H264 encoder v7

2014-02-12 Thread Christian König
From: Christian König v2 (chk): fix eos handling v3 (leo): implement scaling configuration support v4 (leo): fix bitrate bug v5 (chk): add workaround for bug in Bellagio v6 (chk): fix div by 0 if framerate isn't known, user separate pipe object for scale and transfer, always f

[Mesa-dev] [Bug 74803] [r600g] HyperZ broken on RV630 (Cogs shadows are broken)

2014-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74803 Benjamin Bellec changed: What|Removed |Added Assignee|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.

[Mesa-dev] [PATCH] glsl: pack extension enable bits in parse state to a struct

2014-02-12 Thread Tapani Pälli
Having bits as a struct makes it possible to enable them all easily. This functionality is used when deserializing shaders that are using glsl types introduced by the glsl extensions. Signed-off-by: Tapani Pälli --- src/glsl/ast_function.cpp| 2 +- src/glsl/ast_to_hir.cpp

[Mesa-dev] [PATCH] _mesa_glsl_parse_state change

2014-02-12 Thread Tapani Pälli
Hi; I've been modifying Piglit to use my shader cache under its hood and started to see issues to fix within cache. This patch fixes a problem that cache has with glsl extensions. During deserialization cache creates a _mesa_glsl_parse_state that is used to find builtin glsl types. But without

[Mesa-dev] [Bug 74803] [r600g] HyperZ broken on RV630 (Cogs shadows are broken)

2014-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74803 Andreas Boll changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |dri-devel@lists.freedesktop

Re: [Mesa-dev] [PATCH v2] gallium makefiles: use a linker script for building dri drivers

2014-02-12 Thread Christian König
Am 11.02.2014 17:28, schrieb Maarten Lankhorst: Only export __driDriverExtensions by default, and radeon_drm_winsys_create on radeons. Remove -Bsymbolic which should no longer be needed. As a side effect, it ought to fix a manifestation of bug 73200 on radeon. Signed-off-by: Maarten Lankhorst

Re: [Mesa-dev] [PATCH] targets/vdpau: Always use c++ to link

2014-02-12 Thread Emil Velikov
On 12/02/14 07:07, Kusanagi Kouichi wrote: > If built without llvm, the following error occurs with mplayer: > Grrr why are you building r600 without llvm :-P But seriously this is a nice cleanup that every gallium target can make use of. Targets that don't do any c++ will handle this as a no-on.

Re: [Mesa-dev] [PATCH 6/7] meta: Drop the src == dst restriction on meta glBlitFramebuffer().

2014-02-12 Thread Brian Paul
On 02/11/2014 07:26 PM, Ian Romanick wrote: On 02/11/2014 05:11 PM, Eric Anholt wrote: From the GL_ARB_fbo spec: If the source and destination buffers are identical, and the source and destination rectangles overlap, the result of the blit operation is undefined. As far as I kn

[Mesa-dev] [PATCH] radeon: reverse DBG_NO_HYPERZ logic

2014-02-12 Thread Alex Deucher
Change the flag to DBG_HYPERZ and reverse the logic so setting the flag enabled the feature. This disables hyperz on r600g and radeonsi by default. It can be enabled by setting the env var. There are just too many issues with certain apps so leave it disabled for now until we sort out the issues

Re: [Mesa-dev] glxinfo and indirect contexts on nvidia driver

2014-02-12 Thread Fredrik Höglund
On Wednesday 12 February 2014, James Jones wrote: > Hi Dave, > > Adding { GLX_DRAWABLEL_TYPE, GLX_WINDOW_BIT } to the attrib list should > work, and would technically be more correct since glxinfo is creating a > window drawable. 32-bit float FBConfigs won't be able to render to X > drawables

[Mesa-dev] [Bug 72895] Missing trees in flightgear 2.12.1 with mesa 10.0.1

2014-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=72895 Fredrik Höglund changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] targets/vdpau: Always use c++ to link

2014-02-12 Thread Matt Turner
On Wed, Feb 12, 2014 at 7:04 AM, Emil Velikov wrote: > On 12/02/14 07:07, Kusanagi Kouichi wrote: >> If built without llvm, the following error occurs with mplayer: >> > Grrr why are you building r600 without llvm :-P > > But seriously this is a nice cleanup that every gallium target can make > us

Re: [Mesa-dev] [PATCH 06/23] i965: Define common register base class shared between both back-ends.

2014-02-12 Thread Francisco Jerez
Paul Berry writes: > On 19 December 2013 13:30, Francisco Jerez wrote: > >> Paul Berry writes: >> >> > On 2 December 2013 11:31, Francisco Jerez wrote: >> > >> >> diff --git a/src/mesa/drivers/dri/i965/brw_shader.h >> >> b/src/mesa/drivers/dri/i965/brw_shader.h >> >> index ff5af93..f284389 100

Re: [Mesa-dev] [PATCH 00/23] i965 compiler fixes in preparation for ARB_shader_image_load_store.

2014-02-12 Thread Matt Turner
On Mon, Dec 2, 2013 at 11:31 AM, Francisco Jerez wrote: > [PATCH 07/23] i965/fs: Add support for sub-register byte offsets to the FS > back-end IR. > [PATCH 08/23] i965/fs: Add support for specifying register horizontal strides. > [PATCH 09/23] i965/fs: Remove fs_reg::smear. > [PATCH 10/23] i965/

[Mesa-dev] [Bug 74900] New: ir.h(701) : error C2208: '__restrict bool' : no members defined using this type

2014-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74900 Priority: medium Bug ID: 74900 Keywords: regression CC: curroje...@riseup.net, stereotype...@gmail.com Assignee: mesa-dev@lists.freedesktop.org Summary: ir.h(701) : error C2208:

Re: [Mesa-dev] [PATCH] radeon: reverse DBG_NO_HYPERZ logic

2014-02-12 Thread Marek Olšák
Acked-by: Marek Olšák Please don't close the FDO bugs after this is committed. Marek On Wed, Feb 12, 2014 at 6:20 PM, Alex Deucher wrote: > Change the flag to DBG_HYPERZ and reverse the logic > so setting the flag enabled the feature. This disables > hyperz on r600g and radeonsi by default.

[Mesa-dev] [PATCH] glsl: rename _restrict to restrict_flag

2014-02-12 Thread Brian Paul
To fix MSVC compile breakage. Evidently, _restrict is an MSVC keyword, though the docs only mention __restrict (with two underscores). Note: we may want to also rename _volatile to volatile_flag to be consistent. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74900 --- src/glsl/ast.h

Re: [Mesa-dev] [PATCH] glsl: rename _restrict to restrict_flag

2014-02-12 Thread Ian Romanick
On 02/12/2014 12:25 PM, Brian Paul wrote: > To fix MSVC compile breakage. Evidently, _restrict is an MSVC keyword, > though the docs only mention __restrict (with two underscores). Clear violation of the C standard. Strong work. This is almost as bad as the "near" and "far" rubbish. I'm waitin

[Mesa-dev] [Bug 74900] ir.h(701) : error C2208: '__restrict bool' : no members defined using this type

2014-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74900 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH] clover: Don't call pipe_loader_release() when deleting a device

2014-02-12 Thread Tom Stellard
From: Tom Stellard After pipe_loader_release() is called, if any of the pipe_* objects try to call into the gallium API the application will segfault. The only time devices are deleted is when the global _clover_platform object is deleted by the static destructor. However, since application ob

[Mesa-dev] [Bug 74911] New: [swrast] piglit glsl-lod-bias regression

2014-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74911 Priority: medium Bug ID: 74911 Keywords: regression CC: e...@anholt.net, i...@freedesktop.org Assignee: mesa-dev@lists.freedesktop.org Summary: [swrast] piglit glsl-lod-bias regr

Re: [Mesa-dev] Mesa (master): nv30: report 8 maximum inputs

2014-02-12 Thread Ian Romanick
On 02/10/2014 06:16 PM, Ilia Mirkin wrote: > On Mon, Feb 10, 2014 at 7:12 PM, Ian Romanick wrote: >> On 02/10/2014 02:04 PM, Ilia Mirkin wrote: >>> On Mon, Feb 10, 2014 at 4:43 PM, Ian Romanick wrote: On 02/08/2014 04:18 PM, Ilia Mirkin wrote: > Module: Mesa > Branch: master > Co

Re: [Mesa-dev] Mesa (master): nv30: report 8 maximum inputs

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 6:23 PM, Ian Romanick wrote: > On 02/10/2014 06:16 PM, Ilia Mirkin wrote: >> On Mon, Feb 10, 2014 at 7:12 PM, Ian Romanick wrote: >>> On 02/10/2014 02:04 PM, Ilia Mirkin wrote: This of course does not preclude them getting clamped/modified in some way. Ideally th

Re: [Mesa-dev] Mesa installation - Facing problems..

2014-02-12 Thread Sathishkumar Sivagurunathan
Hi, I am using the latest libdrm available with Ubuntu.. Does Mesa release libdrm ?? Thanks, Sathish -Original Message- From: Matt Turner [mailto:matts...@gmail.com] Sent: Wednesday, February 12, 2014 6:16 AM To: Sathishkumar Sivagurunathan Cc: mesa-dev@lists.freedesktop.org Su

[Mesa-dev] [PATCH] i965: Avoid dependency hints on math opcodes

2014-02-12 Thread mike
From: Mike Stroyan Putting NoDDClr and NoDDChk dependency control on instruction sequences that include math opcodes can cause corruption of channels. Treat math opcodes like send opcodes and suppress dependency hinting. Signed-off-by: Mike Stroyan Tested-by: Tony Bertapelli --- src/mesa/dr

[Mesa-dev] [Bug 74911] [swrast] piglit glsl-lod-bias regression

2014-02-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=74911 Eric Anholt changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|mesa-dev@lists

[Mesa-dev] [PATCH 2/4] scons: sync package requirements

2014-02-12 Thread Emil Velikov
xorg-server and libkms is no longer required since the removal of the xorg state-tracker. Signed-off-by: Emil Velikov --- scons/gallium.py | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scons/gallium.py b/scons/gallium.py index 70ee89b..f505a62 100755 --- a/scons/gal

[Mesa-dev] [PATCH 1/4] configure: bump up libdrm requirement to 2.4.38

2014-02-12 Thread Emil Velikov
This is the first version that introduced DRM_CAP_PRIME, which is implicitly required by egl/wayland. Signed-off-by: Emil Velikov --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 00a0eaa..70970a9 100644 --- a/configure.ac +++

[Mesa-dev] [PATCH 4/4] st/dri: remove #ifdef DRM_CAP_PRIME guard

2014-02-12 Thread Emil Velikov
Required for libdrm 2.4.37 and earlier. Both scons and automake require version 2.4.38 now so that guard is not longer needed. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/drm/dri2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c

[Mesa-dev] [PATCH 3/4] automake: remove leftover XORG and LIBKMS variables

2014-02-12 Thread Emil Velikov
No longer set or used since the removal of st/xorg. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/Makefile.am | 1 - src/gallium/targets/xa-vmwgfx/Makefile.am | 3 +-- src/gbm/Makefile.am | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/

[Mesa-dev] [PATCH 03/38] dri_interface: note introduction of various __DRItexBufferExtension members

2014-02-12 Thread Emil Velikov
Note the member function releaseTexBuffer was added without bumping spec version, and currently no drivers implement it. Signed-off-by: Emil Velikov --- include/GL/internal/dri_interface.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/GL/internal/dri_interface.h b/include/GL

[Mesa-dev] [PATCH 06/38] dri_interface: note introduction of __DRIdri2LoaderExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- include/GL/internal/dri_interface.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 7d22654..5b333a1 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/interna

[Mesa-dev] [PATCH 01/38] dri_util: explicitly set __DRIswrastExtension members.

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/common/dri_util.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index d09d50a..0aa997e 100644 --- a/src/mesa/drivers/dri/common

[Mesa-dev] [PATCH 02/38] dri_util: explicitly set __DRIcopySubBufferExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/common/dri_util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 0aa997e..0873927 100644 --- a/src/mesa/drivers/dri/common/dri_util

[Mesa-dev] [PATCH 04/38] drivers/dri: set the implemented version of __DRItexBufferExtension

2014-02-12 Thread Emil Velikov
... over the version number provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i915/intel_screen.c | 2 +- src/mesa/drivers/dri/i965/intel_screen.c | 2 +- src/mesa/drivers/dri/nouveau/nouveau_screen.c |

[Mesa-dev] [PATCH 00/38] Constify __DRI*Extension usage and misc cleanup

2014-02-12 Thread Emil Velikov
Rather trivial yet long series, that handles - improve the readability of when instantiating an extension. I.e. explicitly set each extension parameter. - use the typecasted name defined in the dri_interface.h eg. __DRIblaExtension over struct _DRIblaExtensionRec - set the implemented versio

[Mesa-dev] [PATCH 08/38] gbm: explicitly set __DRIdri2LoaderExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gbm/backends/dri/gbm_dri.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index e013980..5a0dad0 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri

[Mesa-dev] [PATCH 11/38] st/dri: set the implemented version of __DRI2throttleExtension

2014-02-12 Thread Emil Velikov
... over the version number provided by the headers. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/common/dri_drawable.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dr

[Mesa-dev] [PATCH 13/38] gbm: explicitly set __DRIimageLoaderExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/gbm/backends/dri/gbm_dri.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 5a0dad0..5b9998f 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/g

[Mesa-dev] [PATCH 15/38] dri_util: use the implemented version of __DRIimageDriverExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the headers. Currently both versions are identical, but that is not guaranteed to be the case in the future. Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/common/dri_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/d

[Mesa-dev] [PATCH 05/38] st/dri: set the implemented version of __DRItexBufferExtension

2014-02-12 Thread Emil Velikov
... over the version number provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/common/dri_drawable.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/

[Mesa-dev] [PATCH 09/38] st/dri: set the implemented version of __DRI2flushExtension

2014-02-12 Thread Emil Velikov
over the version number provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/drm/dri2.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c

[Mesa-dev] [PATCH 17/38] glx/dri_common: use the implemented version of __DRIsystemTimeExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- src/glx/dri_common.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index 012c8f4..8bf4705 100644

[Mesa-dev] [PATCH 14/38] glx/dri3: set the implemented version of __DRIimageLoaderExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the spec. Currently both versions are identical, but that is not guaranteed to be the case in the future. Signed-off-by: Emil Velikov --- src/glx/dri3_glx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_g

[Mesa-dev] [PATCH 22/38] st/dri: explicitly set __DRIimageExtension members

2014-02-12 Thread Emil Velikov
While we're here use the typcast'ed name and constify. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/drm/dri2.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers

[Mesa-dev] [PATCH 31/38] dri/nouveau: constify usage of __DRIdri2LoaderExtension

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/nouveau/nouveau_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/nouveau/nouveau_driver.c b/src/mesa/drivers/dri/nouveau/nouveau_driver.c index 809b5ff..1a8afa2 100644 --- a/src/mesa/drivers/dri

[Mesa-dev] [PATCH 32/38] dri_util: constify __DRI*Extension handling

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/common/dri_util.c | 12 ++-- src/mesa/drivers/dri/common/dri_util.h | 8 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index c

[Mesa-dev] [PATCH 37/38] gbm/dri: constify remaining __DRI*Extensions

2014-02-12 Thread Emil Velikov
Already threaded as such, but stored as non-const. Signed-off-by: Emil Velikov --- src/gbm/backends/dri/gbm_driint.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h index fdf694d..36a6d34 100644

[Mesa-dev] [PATCH 28/38] st/dri/drm: constify __DRI*Extension pointers

2014-02-12 Thread Emil Velikov
Note: the __DRIimageExtension should not be made const as it's modified at runtime. Signed-off-by: Emil Velikov --- src/gallium/state_trackers/dri/drm/dri2.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/stat

[Mesa-dev] [PATCH 29/38] drivers/dri: use typecast'ed name and constify __DRIimageExtension

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i915/intel_screen.c| 2 +- src/mesa/drivers/dri/i965/intel_screen.c| 2 +- src/mesa/drivers/dri/radeon/radeon_screen.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/sr

[Mesa-dev] [PATCH 21/38] glx/dri2: use the implemented version of __DRIuseInvalidateExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- src/glx/dri2_glx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index deeffa4..116a6a6 100644 --- a/src/gl

[Mesa-dev] [PATCH 10/38] drivers/dri: explicitly set __DRI2flushExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/nouveau/nouveau_screen.c | 7 --- src/mesa/drivers/dri/radeon/radeon_screen.c | 7 --- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/nouveau/nouveau_screen.c b/src/mesa/drivers/dri/nouveau/nouvea

[Mesa-dev] [PATCH 12/38] egl/wayland: explicitly set __DRIimageLoaderExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/platform_wayland.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 50750a9..a9c067f 100644 --- a/src/egl/drivers/dri2/platform_w

[Mesa-dev] [PATCH 33/38] glx/drisw: constify __DRI*Extension handling

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/glx/drisw_glx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 33d347a..eae376e 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -664,7 +664,7 @@ driswBindExtensions(struc

[Mesa-dev] [PATCH 38/38] egl_dri2: constify remaining __DRI*Extensions

2014-02-12 Thread Emil Velikov
Already threaded as such, but stored as non-const. The loader extensions - __DRIdri2LoaderExtension and __DRIdri2LoaderExtension are setup by the platform backends. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 4 ++-- src/egl/drivers/dri2/egl_dri2.h | 16

[Mesa-dev] [PATCH 16/38] glx/dri: use the implemented version of __DRIgetDrawableInfoExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the headers. Signed-off-by: Emil Velikov --- src/glx/dri_glx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index 03ecc5b..8593750 100644 --- a/src/glx/dri_glx.c +++ b/src/glx/dri_glx.c @@ -299,8 +299,

[Mesa-dev] [PATCH 24/38] egl_dri gbm: explicitly set __DRIimageLookupExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 5 +++-- src/gbm/backends/dri/gbm_dri.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index b63c5f3..80bc834 100644 --- a/src/egl/driver

[Mesa-dev] [PATCH 07/38] glx/dri2: set the implemented version of __DRIdri2LoaderExtension

2014-02-12 Thread Emil Velikov
... over the version number provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- src/glx/dri2_glx.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 67fe9

[Mesa-dev] [PATCH 34/38] glx/dri: constify __DRI*Extension handling

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/glx/dri_glx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index 3b7502d..a7ae92b 100644 --- a/src/glx/dri_glx.c +++ b/src/glx/dri_glx.c @@ -193,7 +193,7 @@ glXGetDriverConfig(const char

[Mesa-dev] [PATCH 30/38] dri/i9*5: use typecast'ed name and constify __DRI2rendererQueryExtension

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i915/intel_screen.c | 2 +- src/mesa/drivers/dri/i965/intel_screen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c index 57324de..a27a

[Mesa-dev] [PATCH 25/38] dri_util: use the implemented version of __DRI2configQueryExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the headers. Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/common/dri_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index aed73c7..c4ff9c7 100644 ---

[Mesa-dev] [PATCH 20/38] egl_dri gbm: explicitly set __DRIuseInvalidateExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 2 +- src/gbm/backends/dri/gbm_dri.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 892f1f4..b63c5f3 100644 --- a/src/egl/drivers/dri2

[Mesa-dev] [PATCH 27/38] glx/tests: explicitly set __DRI2rendererQueryExtension members

2014-02-12 Thread Emil Velikov
While we're here use the typcast'ed name and constify. Signed-off-by: Emil Velikov --- src/glx/tests/query_renderer_implementation_unittest.cpp | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glx/tests/query_renderer_implementation_unittest.cpp b/src/glx/tests/qu

[Mesa-dev] [PATCH 35/38] glx/dri2: constify __DRI*Extension handling

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/glx/dri2_glx.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 116a6a6..ece51e5 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -1115,20 +1115,20 @@ dri2BindExtensions(

[Mesa-dev] [PATCH 26/38] dri/i965: explicitly set __DRIrobustnessExtension members

2014-02-12 Thread Emil Velikov
Use typecast'ed type while we're here. Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/i965/intel_screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index c7b6c92..6a7a226 1006

[Mesa-dev] [PATCH 36/38] glx/dri3: constify __DRI*Extension handling

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/glx/dri3_glx.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c index 8fbf125..0794ad8 100644 --- a/src/glx/dri3_glx.c +++ b/src/glx/dri3_glx.c @@ -1566,17 +1566,17 @@ dri3_bind_extensions(

[Mesa-dev] [PATCH 18/38] glx/dri: use the implemented version of __DRIdamageExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- src/glx/dri_glx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index 8593750..3b7502d 100644 --- a/src/

[Mesa-dev] [PATCH 23/38] dri/radeon: explicitly set __DRIimageExtension members

2014-02-12 Thread Emil Velikov
Signed-off-by: Emil Velikov --- src/mesa/drivers/dri/radeon/radeon_screen.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 0e323bf..7c15090 100644 --- a/src/mesa/dri

[Mesa-dev] [PATCH 19/38] glx/drisw: use the implemented version of __DRIswrastLoaderExtension

2014-02-12 Thread Emil Velikov
... over the one provided by the headers. Explicitly set extension members to improve clarity. Signed-off-by: Emil Velikov --- include/GL/internal/dri_interface.h | 3 +++ src/glx/drisw_glx.c | 11 ++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/includ

Re: [Mesa-dev] [PATCH v4 3/9] glsl: parse invocations layout qualifier for ARB_gpu_shader5

2014-02-12 Thread Anuj Phogat
On Thu, Feb 6, 2014 at 6:28 PM, Jordan Justen wrote: > _mesa_glsl_parse_state in_qualifier->invocations will store the > invocations count. > > v3: > * Use in_qualifier to allow the primitive to be specied >separately from the invocations count (merge_qualifiers) > > Signed-off-by: Jordan Jus

[Mesa-dev] [PATCH] nouveau: fix chipset checks for nv1a by using the oclass instead

2014-02-12 Thread Ilia Mirkin
Commit f4ebcd133b9 ("dri/nouveau: NV17_3D class is not available for NV1a chipset") fixed this partially by using the correct 3d class. However there were a lot of checks left over comparing against the chipset. Reported-and-tested-by: John F. Godfrey Signed-off-by: Ilia Mirkin --- I guess I di

Re: [Mesa-dev] [PATCH] nouveau: fix chipset checks for nv1a by using the oclass instead

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 9:02 PM, Ilia Mirkin wrote: > Commit f4ebcd133b9 ("dri/nouveau: NV17_3D class is not available for > NV1a chipset") fixed this partially by using the correct 3d class. > However there were a lot of checks left over comparing against the > chipset. > > Reported-and-tested-by

Re: [Mesa-dev] [PATCH 04/38] drivers/dri: set the implemented version of __DRItexBufferExtension

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov wrote: > ... over the version number provided by the headers. > Explicitly set extension members to improve clarity. So... the current value is 2, but I see code that does src/egl/drivers/dri2/egl_dri2.c:#if __DRI_TEX_BUFFER_VERSION >= 3 src/glx/dri2

Re: [Mesa-dev] [PATCH v4 8/9] i965: support gl_InvocationID for gen7

2014-02-12 Thread Anuj Phogat
On Thu, Feb 6, 2014 at 6:28 PM, Jordan Justen wrote: > v2: > * Make gl_InvocationID a system value > > v3: > * Properly shift from R0.1 into DST.4 by adding >GS_OPCODE_GET_INSTANCE_ID > > Signed-off-by: Jordan Justen > Acked-by: Paul Berry > --- > src/mesa/drivers/dri/i965/brw_defines.h

Re: [Mesa-dev] [PATCH 04/38] drivers/dri: set the implemented version of __DRItexBufferExtension

2014-02-12 Thread Emil Velikov
On 13/02/14 02:34, Ilia Mirkin wrote: > On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov > wrote: >> ... over the version number provided by the headers. >> Explicitly set extension members to improve clarity. > > So... the current value is 2, but I see code that does > > src/egl/drivers/dri2/egl_

Re: [Mesa-dev] [PATCH 04/38] drivers/dri: set the implemented version of __DRItexBufferExtension

2014-02-12 Thread Emil Velikov
On 13/02/14 02:47, Emil Velikov wrote: > On 13/02/14 02:34, Ilia Mirkin wrote: >> On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov >> wrote: >>> ... over the version number provided by the headers. >>> Explicitly set extension members to improve clarity. >> >> So... the current value is 2, but I see

Re: [Mesa-dev] [PATCH 28/38] st/dri/drm: constify __DRI*Extension pointers

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov wrote: > Note: the __DRIimageExtension should not be made const > as it's modified at runtime. > > Signed-off-by: Emil Velikov > --- > src/gallium/state_trackers/dri/drm/dri2.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff

Re: [Mesa-dev] [PATCH] i965: Avoid dependency hints on math opcodes

2014-02-12 Thread Matt Turner
On Wed, Feb 12, 2014 at 4:24 PM, wrote: > From: Mike Stroyan > > Putting NoDDClr and NoDDChk dependency control on instruction > sequences that include math opcodes can cause corruption of channels. > Treat math opcodes like send opcodes and suppress dependency hinting. > > Signed-off-by: Mike

Re: [Mesa-dev] [PATCH 04/38] drivers/dri: set the implemented version of __DRItexBufferExtension

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 9:56 PM, Emil Velikov wrote: > On 13/02/14 02:47, Emil Velikov wrote: >> On 13/02/14 02:34, Ilia Mirkin wrote: >>> On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov >>> wrote: ... over the version number provided by the headers. Explicitly set extension members to i

Re: [Mesa-dev] [PATCH 37/38] gbm/dri: constify remaining __DRI*Extensions

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 8:18 PM, Emil Velikov wrote: > Already threaded as such, but stored as non-const. I think "treated" is the preferred spelling... > > Signed-off-by: Emil Velikov > --- > src/gbm/backends/dri/gbm_driint.h | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-)

Re: [Mesa-dev] [PATCH 38/38] egl_dri2: constify remaining __DRI*Extensions

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 8:18 PM, Emil Velikov wrote: > Already threaded as such, but stored as non-const. treated > > The loader extensions - __DRIdri2LoaderExtension and __DRIdri2LoaderExtension > are setup by the platform backends. set up > > Signed-off-by: Emil Velikov > --- > src/egl/dri

Re: [Mesa-dev] [PATCH 32/38] dri_util: constify __DRI*Extension handling

2014-02-12 Thread Ilia Mirkin
On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov wrote: > Signed-off-by: Emil Velikov > --- > src/mesa/drivers/dri/common/dri_util.c | 12 ++-- > src/mesa/drivers/dri/common/dri_util.h | 8 > 2 files changed, 10 insertions(+), 10 deletions(-) > > diff --git a/src/mesa/drivers/dri/

Re: [Mesa-dev] [PATCH 32/38] dri_util: constify __DRI*Extension handling

2014-02-12 Thread Emil Velikov
On 13/02/14 03:11, Ilia Mirkin wrote: > On Wed, Feb 12, 2014 at 8:17 PM, Emil Velikov > wrote: >> Signed-off-by: Emil Velikov >> --- >> src/mesa/drivers/dri/common/dri_util.c | 12 ++-- >> src/mesa/drivers/dri/common/dri_util.h | 8 >> 2 files changed, 10 insertions(+), 10 del

Re: [Mesa-dev] [PATCH] i965: Avoid dependency hints on math opcodes

2014-02-12 Thread Ian Romanick
On 02/12/2014 06:59 PM, Matt Turner wrote: > On Wed, Feb 12, 2014 at 4:24 PM, wrote: >> From: Mike Stroyan >> >> Putting NoDDClr and NoDDChk dependency control on instruction >> sequences that include math opcodes can cause corruption of channels. >> Treat math opcodes like send opcodes and su

[Mesa-dev] What is DRI_IMAGE and do I want it?

2014-02-12 Thread Ilia Mirkin
Hello list, A number of piglit tests fail with the nouveau dri driver (for pre-nv30 cards), e.g. http://people.freedesktop.org/~imirkin/nv10-comparison/nv18-imirkin/spec/EGL_EXT_client_extensions/conformance%20test%203.html libEGL fatal: DRI2: did not find extension DRI_IMAGE version 1 I notice

Re: [Mesa-dev] Mesa installation - Facing problems..

2014-02-12 Thread Timothy Arceri
What is your reason for building Mesa? If you are just wanting to run the latest build you might be better off using Oibaf's ppa [1] If you still want to build Mesa you could still probably use the ppa to upgrade your libdrm rather than having to build it yourself. [1]https://launchpad.net/~oibaf/

[Mesa-dev] [PATCH] nv50: mark scissors/viewports dirty on context switch

2014-02-12 Thread Ilia Mirkin
Commit 246ca4b001 ("nv50: implement multiple viewports/scissors, enable ARB_viewport_array") added dirty tracking to scissors/viewports. However it neglected to mark them all as dirty on a context switch. This fixes an apparent regression in webgl in chrome, but probably in any application that swi

Re: [Mesa-dev] What is DRI_IMAGE and do I want it?

2014-02-12 Thread Ilia Mirkin
On Thu, Feb 13, 2014 at 12:33 AM, Ilia Mirkin wrote: > Hello list, > > A number of piglit tests fail with the nouveau dri driver (for > pre-nv30 cards), e.g. > > http://people.freedesktop.org/~imirkin/nv10-comparison/nv18-imirkin/spec/EGL_EXT_client_extensions/conformance%20test%203.html > > libEG