Re: [Mesa-dev] [PATCH] Revert "configure: ask vdpau.pc for the default location of the vdpau drivers"

2014-10-01 Thread Ilia Mirkin
On Mon, Sep 29, 2014 at 8:33 PM, Emil Velikov wrote: > On 29/09/14 17:24, Matt Turner wrote: >> On Mon, Sep 29, 2014 at 9:16 AM, Emil Velikov >> wrote: >>> So all in all we have the following: >>> >>> Some distributions/people choose odd location of the modules. Which >>> can lead to the system

Re: [Mesa-dev] [PATCH] glsl: Fix memory leak in builtin_builder::_image_prototype.

2014-10-01 Thread Ilia Mirkin
On Wed, Oct 1, 2014 at 6:12 AM, Iago Toral Quiroga wrote: > in_var calls the ir_variable constructor, which dups the variable name. I just came across this too, and tested that your patch fixed it. There has to be some better way of dealing with this, like making a fixed-size char buffer on the s

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Ilia Mirkin
On Wed, Oct 1, 2014 at 12:06 PM, Marek Olšák wrote: > On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: >> In the drivers, we occasionally want to reallocate the backing >> store for a buffer object; often to avoid waiting for the GPU >> to be finished with the previous contents. >> >> At the

[Mesa-dev] [PATCH 3/3] i965/fs: Add a MAX_GRF_SIZE define and use it various places

2014-10-01 Thread Jason Ekstrand
Previously, we had a MAX_SAMPLER_MESSAGE_SIZE which we used instead. However, some FB write messages can validly be longer than this so we need something different. Since MAX_SAMPLER_MESSAGE_SIZE is validly useful on its own, we leave it alone and add a new MAX_GRF_SIZE that's big enough for FB wr

[Mesa-dev] [RESEND PATCH 7/7] i965: No longer reemit textures on BRW_NEW_UNIFORM_BUFFER

2014-10-01 Thread Chris Forbes
This didn't make any sense, but papered over the missing TexBO flagging we've just fixed, in a bunch of cases. Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_s

[Mesa-dev] [PATCH] gallium/hud: use u_sampler_view_default_template helper

2014-10-01 Thread Ilia Mirkin
The existing code was not setting several fields, most importantly the target, which is required on nv50/nvc0. Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/hud/hud_context.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/gallium/auxiliary/hud/hud_context

[Mesa-dev] [PATCH 4/8] dri: Add a flush control extension

2014-10-01 Thread Neil Roberts
Adds a DRI extension which advertises that the driver can accept a new __DRI_CTX_ATTRIB_RELEASE_BEHAVIOR attribute in the createContextAttribs function. If the attribute is specified then it will be passed down to the CreateContext function in the release_behavior member of __DriverContextConfig. T

[Mesa-dev] [PATCH 1/3] i965: Rename two intelEmit*Blit functions to not use camel-case

2014-10-01 Thread Jason Ekstrand
I think these are about the only remaining uses of camel-case in the i965 driver. Let's make things more consistent. Signed-off-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_blit.c | 108 - src/mesa/drivers/dri/i965/intel_blit.h | 51 ++-

[Mesa-dev] [PATCH 2/3] i965/fs: Use the actual regsister width in brw_reg_from_fs_reg

2014-10-01 Thread Jason Ekstrand
This fixes a bug where 1-wide operations don't properly translate down to 1-wide instructions. Signed-off-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 13 + 1 file changed, 13 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src

[Mesa-dev] [RESEND PATCH 3/7] mesa: Mark buffer objects that are used as TexBOs

2014-10-01 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/main/mtypes.h | 3 +++ src/mesa/main/teximage.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 9ac66fe..f040679 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1469,6

[Mesa-dev] [Bug 84566] New: Unify the format conversion code

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 Priority: medium Bug ID: 84566 Assignee: mesa-dev@lists.freedesktop.org Summary: Unify the format conversion code Severity: enhancement Classification: Unclassified OS: All

[Mesa-dev] [PATCH 2/3] i965/blit: Add a color blit function and use it in set_alpha_to_one

2014-10-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_blit.c | 90 -- src/mesa/drivers/dri/i965/intel_blit.h | 10 2 files changed, 73 insertions(+), 27 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Marek Olšák
On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: > In the drivers, we occasionally want to reallocate the backing > store for a buffer object; often to avoid waiting for the GPU > to be finished with the previous contents. > > At the point that happens, we don't have a good way of determining

[Mesa-dev] [PATCH 5/8] glx: Add the GLX_ARB_flush_control extension

2014-10-01 Thread Neil Roberts
This adds the framework for the GLX flush control extension. It is advertised if the DRI driver implements the new __DRI2_FLUSH_CONTROL extension. The GLX attributes are converted to the appropriate DRI attributes. --- src/glx/dri2_glx.c | 19 +-- src/glx/dri3_glx.c | 15

Re: [Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Chris Forbes
Looks like some mail server ate patches 2,3,4,7. I've resent them. What you're doing in r600_invalidate_buffer is exactly what I'm trying to avoid doing. :) -- Chris On Thu, Oct 2, 2014 at 5:06 AM, Marek Olšák wrote: > On Wed, Oct 1, 2014 at 11:02 AM, Chris Forbes wrote: >> In the drivers, we

Re: [Mesa-dev] [PATCH v3 2/6] st/va: skeleton VAAPI state tracker

2014-10-01 Thread Alex Deucher
On Mon, Sep 29, 2014 at 12:30 PM, Liu, Leo wrote: > Hi Emil, > > Thanks for the explanation. > V4 has been sent, please review. V4 is: Reviewed-by: Alex Deucher > > Thanks, > Leo > >>-Original Message- >>From: Emil Velikov [mailto:emil.l.veli...@gmail.com] >>Sent: Monday, September 29,

Re: [Mesa-dev] [PATCH 3/4] radeonsi: Catch more cases that can't be handled by si_dma_copy_buffer/tile

2014-10-01 Thread Marek Olšák
On Wed, Oct 1, 2014 at 4:13 PM, Grigori Goronzy wrote: > On 30.09.2014 05:58, Michel Dänzer wrote: >> diff --git a/src/gallium/drivers/radeonsi/si_dma.c >> b/src/gallium/drivers/radeonsi/si_dma.c >> index ff64722..643ce3f 100644 >> --- a/src/gallium/drivers/radeonsi/si_dma.c >> +++ b/src/gallium/

[Mesa-dev] [PATCH 7/7] i965: No longer reemit textures on BRW_NEW_UNIFORM_BUFFER

2014-10-01 Thread Chris Forbes
This didn't make any sense, but papered over the missing TexBO flagging we've just fixed, in a bunch of cases. Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_wm_s

[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080 --- Comment #4 from Adrian Negreanu --- Would the same behaviour/bug be exposed by calling XGetGeometry on a drawable created with glXCreatePixmap ? -- You are receiving this mail because: You are the assignee for the bug. _

[Mesa-dev] [PATCH 8/8] docs: Update GL3.txt and relnotes for GL_KHR_context_flush_control

2014-10-01 Thread Neil Roberts
--- docs/GL3.txt| 2 +- docs/relnotes/10.4.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index 5adc759..3ab4b40 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -195,7 +195,7 @@ GL 4.5, GLSL 4.50: GL_ARB_get_texture_sub_image

Re: [Mesa-dev] [PATCH v3 2/6] st/va: skeleton VAAPI state tracker

2014-10-01 Thread Emil Velikov
On 01/10/14 14:00, Liu, Leo wrote: > Hi Emil, > > Any comments on V4 > It actually hurts me that I have to write the following: Is it too unusual to ./configure (or perhaps even make) prior to this email/sending out the patch? I realise that mesa is big and slow but spending 10-20 seconds (confi

[Mesa-dev] [PATCH] i965: free scratch buffers when destroying the context

2014-10-01 Thread Iago Toral Quiroga
If scratch space is needed for a shader stage we try to reuse the last scratch buffer bound to that stage. If we can't, we free the old scratch buffer and allocate a new one. This means we always keep the last scratch buffer for a particular shader stage around for the entire live span of the conte

Re: [Mesa-dev] [PATCH v2 3/5] i965: Fix INTEL_DEBUG=state to work with 64-bit dirty bits.

2014-10-01 Thread Chris Forbes
For the series: Reviewed-by: Chris Forbes On Sat, Sep 27, 2014 at 11:09 AM, Kenneth Graunke wrote: > This will keep INTEL_DEBUG=state working when we add BRW_NEW_* bits > beyond 1 << 31. We missed doing this when widening the driver flags > from uint32_t to uint64_t. > > Signed-off-by: Kenneth

[Mesa-dev] [PATCH v2 5/9] glsl: Add const_vec4 IR sexp creation function to test_case_generator.py

2014-10-01 Thread Iago Toral Quiroga
From: Petri Latvala Signed-off-by: Petri Latvala --- src/glsl/tests/test_case_generator.py | 4 1 file changed, 4 insertions(+) diff --git a/src/glsl/tests/test_case_generator.py b/src/glsl/tests/test_case_generator.py index 5df8420..6633702 100644 --- a/src/glsl/tests/test_case_generato

Re: [Mesa-dev] [PATCH] mesa: fix GetTexImage for 1D array depth textures

2014-10-01 Thread Brian Paul
On 09/30/2014 05:24 PM, Dave Airlie wrote: From: Dave Airlie While running piglit in virgl, I hit an assert in intel driver. "qemu-system-x86_64: intel_tex.c:219: intel_map_texture_image: Assertion `tex_image->TexObject->Target != 0x8C18 || h == 1' failed." Thanks to Eric and Ken for pointin

[Mesa-dev] [PATCH v2 9/9] glsl: Add tests for minmax prune

2014-10-01 Thread Iago Toral Quiroga
From: Petri Latvala Original patch by Petri Latvala : tests/minmax/create_test_cases.py generates the following tests: multiple_min*.opt_test: Construct a tree of min expressions for all permutations of a var_ref and three constants. They should all optimize to a single min with the variable

Re: [Mesa-dev] [PATCH 2/2] i965/fs: Silence uninitialized variable warning.

2014-10-01 Thread Matt Turner
On Tue, Sep 30, 2014 at 4:24 PM, Matt Turner wrote: > The compiler isn't privy to the knowledge that we're doing at least one > framebuffer write. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp > b/src/me

[Mesa-dev] [PATCH v2 2/9] glsl: Refactor the python test case generator

2014-10-01 Thread Iago Toral Quiroga
From: Petri Latvala Move the IR sexp builder helpers and test script creation parts of tests/lower_jumps/create_test_cases.py into tests/test_case_generator.py No functional changes. Signed-off-by: Petri Latvala --- src/glsl/tests/lower_jumps/create_test_cases.py | 336 +++

[Mesa-dev] [Bug 83631] /usr/include/GL/glxext.h:480:143: error: 'GLintptr' has not been declared

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=83631 Simone Caronni changed: What|Removed |Added CC||negativ...@gmail.com -- You are receiv

[Mesa-dev] [PATCH v2 4/9] glsl: Generalize assignment and declaration IR sexp creation functions

2014-10-01 Thread Iago Toral Quiroga
From: Petri Latvala Already-existing and used declare_temp() and assign_x() functions can then be implemented in terms of the general functions. Signed-off-by: Petri Latvala --- src/glsl/tests/test_case_generator.py | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) di

Re: [Mesa-dev] [PATCH] glx/dri3: Provide error diagnostics when DRI3 allocation fails

2014-10-01 Thread Matt Turner
On Tue, Sep 30, 2014 at 8:09 PM, Keith Packard wrote: > Instead of just segfaulting in the driver when a buffer allocation fails, > report error messages indicating what went wrong so that we can debug things. > > As a simple example, chromium wraps Mesa in a sandbox which doesn't allow > access t

Re: [Mesa-dev] [PATCH] i965/fs_fp: Use a null register of the appropreate width.

2014-10-01 Thread Jason Ekstrand
On Sep 30, 2014 8:26 PM, "Matt Turner" wrote: > > On Tue, Sep 30, 2014 at 5:49 PM, Jason Ekstrand wrote: > > Signed-off-by: Jason Ekstrand > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84529 > > --- > > src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 2 +- > > 1 file changed, 1 insertion

[Mesa-dev] [PATCH 4/7] i965: Add new dirty flag for new TexBOs.

2014-10-01 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_state_upload.c | 1 + src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 + 3 files changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/me

[Mesa-dev] [PATCH 2/7] mesa: Mark buffer objects which are bound as UBOs

2014-10-01 Thread Chris Forbes
When a buffer object is bound to one of the indexed uniform buffer binding points, assume that from that point on it may be used as a uniform buffer. Signed-off-by: Chris Forbes --- src/mesa/main/bufferobj.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main/bufferobj.c b/sr

Re: [Mesa-dev] [PATCH 2/2] i965/fs: Silence uninitialized variable warning.

2014-10-01 Thread Matt Turner
On Tue, Sep 30, 2014 at 5:18 PM, Jason Ekstrand wrote: > Reviewed-by: Jason Ekstrand The patch is wrong. See my reply. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/2] i965/fs: Silence uninitialized variable warning.

2014-10-01 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Tue, Sep 30, 2014 at 4:24 PM, Matt Turner wrote: > The compiler isn't privy to the knowledge that we're doing at least one > framebuffer write. > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/mesa/drivers/

[Mesa-dev] [PATCH 3/7] mesa: Mark buffer objects that are used as TexBOs

2014-10-01 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/main/mtypes.h | 3 +++ src/mesa/main/teximage.c | 6 ++ 2 files changed, 9 insertions(+) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 9ac66fe..f040679 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -1469,6

Re: [Mesa-dev] [PATCH] util: add u_lowering

2014-10-01 Thread Michel Dänzer
On 01.10.2014 06:38, Rob Clark wrote: [...] up to the driver to manage it's own shader variants: Spelling: 'its' -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast |Mesa and X developer __

[Mesa-dev] [PATCH] radeonsi: Add CIK SDMA support

2014-10-01 Thread Michel Dänzer
From: Michel Dänzer Based on the corresponding SI support. Signed-off-by: Michel Dänzer --- No piglit regressions[0], even with R600_DEBUG=forcedma. [0] The arb_texture_multisample-sample-mask-execution tests are failing randormly, but I can't get them to fail when run manually, and they

[Mesa-dev] [Bug 84538] New: lp_test_format.c:226:4: error: too few arguments to function ‘gallivm_create’

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84538 Priority: medium Bug ID: 84538 Keywords: regression Assignee: mesa-dev@lists.freedesktop.org Summary: lp_test_format.c:226:4: error: too few arguments to function ‘gallivm_cr

[Mesa-dev] [PATCH v2] radeonsi: Add CIK SDMA support

2014-10-01 Thread Michel Dänzer
From: Michel Dänzer Based on the corresponding SI support. Signed-off-by: Michel Dänzer --- v2: Remove fallback for liner->tiled copies which was accidentally left over from debugging. src/gallium/drivers/radeonsi/Makefile.sources | 1 + src/gallium/drivers/radeonsi/cik_sdma.c |

Re: [Mesa-dev] [PATCH] gallivm: force sse instructions for llvm 3.5+

2014-10-01 Thread Roland Scheidegger
Am 01.10.2014 16:56, schrieb Maarten Lankhorst: > This fixes a crash when llvmpipe tries to use sse instructions, > but llvm detects a cpu that doesn't support them. > > Fixes for example piglit/bin/amd_seamless_cubemap_per_texture -fbo -auto > on i386 when run inside "qemu -cpu qemu32", which wou

Re: [Mesa-dev] [PATCH] gallivm: force sse instructions for llvm 3.5+

2014-10-01 Thread Ilia Mirkin
On Wed, Oct 1, 2014 at 10:56 AM, Maarten Lankhorst wrote: > This fixes a crash when llvmpipe tries to use sse instructions, > but llvm detects a cpu that doesn't support them. > > Fixes for example piglit/bin/amd_seamless_cubemap_per_texture -fbo -auto > on i386 when run inside "qemu -cpu qemu32",

[Mesa-dev] [PATCH] gallivm: force sse instructions for llvm 3.5+

2014-10-01 Thread Maarten Lankhorst
This fixes a crash when llvmpipe tries to use sse instructions, but llvm detects a cpu that doesn't support them. Fixes for example piglit/bin/amd_seamless_cubemap_per_texture -fbo -auto on i386 when run inside "qemu -cpu qemu32", which would otherwise error with: "LLVM ERROR: Do not know how to s

[Mesa-dev] [Bug 84570] Borderlands 2: Framerate drops dramatically with dynamic lighting activated

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84570 James Ausmus changed: What|Removed |Added CC||james.aus...@intel.com -- You are receiv

[Mesa-dev] [Bug 84570] New: Borderlands 2: Framerate drops dramatically with dynamic lighting activated

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84570 Bug ID: 84570 Summary: Borderlands 2: Framerate drops dramatically with dynamic lighting activated Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: L

[Mesa-dev] [PATCH 3/3] i965/clear: Use the blitter for fast clears when possible

2014-10-01 Thread Jason Ekstrand
Most of the time, it doesn't make much of a difference whether we use the blitter or the render pipeline. However, on the GpuTest triangle test from ~4000FPS to ~6000FPS on my HSW desktop. No, that is not a typo. We also see improvement on several Bay Trail benchmarks. Signed-off-by: Jason Ekst

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 Jason Ekstrand changed: What|Removed |Added CC||ja...@jlekstrand.net -- You are receiv

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #1 from Jason Ekstrand --- I've already started a lot of this work. I've got an implementation of an array format enum and master conversion function in this branch: http://cgit.freedesktop.org/~jekstrand/mesa/log/?h=wip/format-conv

[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080 --- Comment #5 from ajax at nwnk dot net --- (In reply to comment #4) > Would the same behaviour/bug be exposed by calling XGetGeometry on a > drawable created with glXCreatePixmap ? No, but you'd have a different problem there, which is that XG

[Mesa-dev] [PATCH 1/3] i965/fs_fp: Use null_reg from fs_visitor instead of rolling our own

2014-10-01 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84529 --- src/mesa/drivers/dri/i965/brw_fs_fp.cpp | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp

[Mesa-dev] [PATCH glproto] glproto: Add tokens for GLX_ARB_context_flush_control

2014-10-01 Thread Neil Roberts
--- glxtokens.h | 8 1 file changed, 8 insertions(+) diff --git a/glxtokens.h b/glxtokens.h index a95082e..68634ee 100644 --- a/glxtokens.h +++ b/glxtokens.h @@ -309,6 +309,14 @@ extern "C" { #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 #define GLX_NO_RESET_NOTIFICATION_A

[Mesa-dev] [PATCH xserver 0/3] Add support for GLX_ARB_context_flush_control

2014-10-01 Thread Neil Roberts
This adds the server-side parts of GLX_ARB_context_flush_control. The corresponding client-side parts in Mesa are posted to the mesa-dev list here: http://lists.freedesktop.org/archives/mesa-dev/2014-October/068914.html There is also a patch needed for glproto which I will post here too. Apologie

[Mesa-dev] [PATCH xserver 1/3] glx: Add extension string tracking for GL_ARB_context_flush_control

2014-10-01 Thread Neil Roberts
--- glx/extension_string.c | 1 + glx/extension_string.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/glx/extension_string.c b/glx/extension_string.c index 4bef96f..e881d21 100644 --- a/glx/extension_string.c +++ b/glx/extension_string.c @@ -72,6 +72,7 @@ struct extension

[Mesa-dev] [PATCH xserver 2/3] glx: Allow attributes from GLX_ARB_context_flush_control

2014-10-01 Thread Neil Roberts
The commit for adding the reset notification extension (90aa2486e) has a note saying that we can assume that if the underlying provider doesn't support the extension then it will generate BadMatch for these attributes. This patch takes the same approach. --- glx/createcontext.c | 15 ++

[Mesa-dev] [PATCH xserver 3/3] glx/dri2: Enable GLX_ARB_context_flush_control

2014-10-01 Thread Neil Roberts
If the driver supports __DRI2_FLUSH_CONTROL then the GLX_ARB_context_flush_control extension will now be enabled as well. If the flush behavior attribute is passed to glXCreateContextAttribsARB and the driver doesn't support __DRI2_FLUSH_CONTROL then the driver should already generate the correct e

[Mesa-dev] [PATCH 6/8] intel: Don't flush the old context in intelMakeCurrent

2014-10-01 Thread Neil Roberts
It shouldn't be necessary to flush the context within the driver implementation because the old context is explicitly flushed in _mesa_make_current before the driver code is reached. It is useful to only have a single place that flushes the context when switching contexts to make it easier to later

[Mesa-dev] [PATCH 7/8] i965: Implement the __DRI2_FLUSH_CONTROL extension

2014-10-01 Thread Neil Roberts
Implementing the extension just involves copying the release behaviour value from the context config to the GL context's constants. The upper layers of Mesa handles the actual flushing. --- src/mesa/drivers/dri/i965/brw_context.c | 20 +++- src/mesa/drivers/dri/i965/intel_screen.c

[Mesa-dev] [PATCH 0/8] Implement GL_KHR_flush_control

2014-10-01 Thread Neil Roberts
Here's a series of patches to implement GL_KHR_flush_control and GLX_ARB_flush_control. The idea of the extension is quite simple and just makes it so that the GL doesn't implicitly flush the context when the context is unbound. This should be a speed improvement for applications that are using mul

[Mesa-dev] [PATCH 2/8] mesa: Add support for the GL_KHR_context_flush_control extension

2014-10-01 Thread Neil Roberts
The GL side of this extension just provides an accessor via glGetIntegerv for the value of GL_CONTEXT_RELEASE_BEHAVIOR so it is trivial to implement. There is a constant on the context for the value of the enum which is initialised to GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH. The extension is always enabl

[Mesa-dev] [PATCH 3/8] dri: Change __DriverApiRec::CreateContext to take a struct for attribs

2014-10-01 Thread Neil Roberts
Previously the CreateContext method of __DriverApiRec took a set of arguments to describe the attribute values from the window system API's CreateContextAttribs function. As more attributes get added this could quickly get unworkable and every new attribute needs a modification for every driver. T

[Mesa-dev] [PATCH 1/8] gles2: Update gl2ext.h to revision 28335

2014-10-01 Thread Neil Roberts
The main incentive to do this is to get the defines for the GL_KHR_context_flush_control extension. --- include/GLES2/gl2ext.h | 313 - 1 file changed, 310 insertions(+), 3 deletions(-) diff --git a/include/GLES2/gl2ext.h b/include/GLES2/gl2ext.h in

Re: [Mesa-dev] [PATCH] mesa: fix GetTexImage for 1D array depth textures

2014-10-01 Thread Eric Anholt
Dave Airlie writes: > From: Dave Airlie > > While running piglit in virgl, I hit an assert in intel driver. > > "qemu-system-x86_64: intel_tex.c:219: intel_map_texture_image: Assertion > `tex_image->TexObject->Target != 0x8C18 || h == 1' failed." > > Thanks to Eric and Ken for pointing me in th

[Mesa-dev] [RESEND PATCH 4/7] i965: Add new dirty flag for new TexBOs.

2014-10-01 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_context.h | 2 ++ src/mesa/drivers/dri/i965/brw_state_upload.c | 1 + src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 + 3 files changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/me

[Mesa-dev] [RESEND PATCH 2/7] mesa: Mark buffer objects which are bound as UBOs

2014-10-01 Thread Chris Forbes
When a buffer object is bound to one of the indexed uniform buffer binding points, assume that from that point on it may be used as a uniform buffer. Signed-off-by: Chris Forbes --- src/mesa/main/bufferobj.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/main/bufferobj.c b/sr

[Mesa-dev] [Bug 84538] lp_test_format.c:226:4: error: too few arguments to function ‘gallivm_create’

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84538 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 54080] glXQueryDrawable fails with GLXBadDrawable for a Window in direct context

2014-10-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54080 Adrian Negreanu changed: What|Removed |Added CC||adrian.m.negre...@intel.com -- You ar

Re: [Mesa-dev] [PATCH 3/4] radeonsi: Catch more cases that can't be handled by si_dma_copy_buffer/tile

2014-10-01 Thread Grigori Goronzy
On 30.09.2014 05:58, Michel Dänzer wrote: > diff --git a/src/gallium/drivers/radeonsi/si_dma.c > b/src/gallium/drivers/radeonsi/si_dma.c > index ff64722..643ce3f 100644 > --- a/src/gallium/drivers/radeonsi/si_dma.c > +++ b/src/gallium/drivers/radeonsi/si_dma.c > @@ -251,7 +251,9 @@ void si_dma_cop

Re: [Mesa-dev] [PATCH] gallivm: fix build for LLVM 3.2

2014-10-01 Thread Jose Fonseca
On 30/09/14 23:32, Mathias Fröhlich wrote: Hi all, Thanks and pushed. Good Night! Mathias Thanks Mathias! ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v3 2/6] st/va: skeleton VAAPI state tracker

2014-10-01 Thread Liu, Leo
Hi Emil, Any comments on V4 Thanks, Leo >-Original Message- >From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On Behalf Of >Liu, Leo >Sent: Monday, September 29, 2014 12:30 PM >To: Emil Velikov >Cc: mesa-dev@lists.freedesktop.org; Koenig, Christian >Subject: Re: [Mesa-dev]

[Mesa-dev] [PATCH] glsl: Fix memory leak in builtin_builder::_image_prototype.

2014-10-01 Thread Iago Toral Quiroga
in_var calls the ir_variable constructor, which dups the variable name. --- src/glsl/builtin_functions.cpp | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp index 5a024cb..7d61fcc 100644 --- a/src/glsl/builti

[Mesa-dev] [PATCH 6/7] i965: Dirty state in BO reallocation based on usage history

2014-10-01 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c index 0e19e46..3532de6 100644 --- a/src/mes

[Mesa-dev] [PATCH 5/7] i965: Have mesa flag BRW_NEW_TEXTURE_BUFFER when a TexBO binding changes

2014-10-01 Thread Chris Forbes
Signed-off-by: Chris Forbes --- src/mesa/drivers/dri/i965/brw_state_upload.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_state_upload.c b/src/mesa/drivers/dri/i965/brw_state_upload.c index 4ca7cb4..a691319 100644 --- a/src/mesa/drivers/dri/i965/brw_state_upl

[Mesa-dev] [PATCH 1/7] mesa: Add usage history bitfield to buffer objects

2014-10-01 Thread Chris Forbes
In the drivers, we occasionally want to reallocate the backing store for a buffer object; often to avoid waiting for the GPU to be finished with the previous contents. At the point that happens, we don't have a good way of determining where else the buffer object may be bound, and so no good way o

[Mesa-dev] [PATCH 0/7] Tidying up of ubo/texbo state flagging

2014-10-01 Thread Chris Forbes
This series fixes some problems with UBO and TexBO state flagging: - glTexBuffer() and glTexBufferRange() never actually dirtied anything, and so didn't work unless something else happened to dirty the correct state (binding a UBO, or a non-buffer texture, or forcing a batch flush,.. ) - i965

[Mesa-dev] [PATCH] glsl: Add README describing how to run python unit tests manually

2014-10-01 Thread Iago Toral Quiroga
--- Developers writing new tests probably want to know how to do this and be aware of things like the fact that some binaries are linking Mesa libraries statically. That certainly had me scratching my head for a while when I was working on a fix for a unit test that insisted in failing even though