Re: [Mesa-dev] [PATCH] st/dri/sw: Fix pitch calculation in drisw_update_tex_buffer

2013-06-20 Thread Stéphane Marchesin
On Tue, Jun 18, 2013 at 8:41 AM, Richard Sandiford rsand...@linux.vnet.ibm.com wrote: swrastGetImage rounds the pitch up to 4 bytes for compatibility reasons that are explained in drisw_glx.c:bytes_per_line, so drisw_update_tex_buffer must do the same. Fixes window skew seen while running

[Mesa-dev] [PATCH] nvc0: Display an error when DRM version is too old to use performance counters

2013-06-20 Thread Samuel Pitoiset
From: Samuel samuel.pitoi...@gmail.com --- src/gallium/drivers/nvc0/nvc0_query.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nvc0/nvc0_query.c b/src/gallium/drivers/nvc0/nvc0_query.c index 75c515a..7fc1ca9 100644 ---

[Mesa-dev] [PATCH] configure.ac: make grep tests more portable

2013-06-20 Thread Jonathan Gray
Use grep -w instead of the empty string escape sequences which are less portable. Makes the grep tests function as intended on OpenBSD. Signed-off-by: Jonathan Gray j...@jsg.id.au --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git configure.ac configure.ac

Re: [Mesa-dev] [PATCH 5/6] mesa: Fix missing setting of shader-IsES.

2013-06-20 Thread Kenneth Graunke
On 06/19/2013 03:57 PM, Eric Anholt wrote: Kenneth Graunke kenn...@whitecape.org writes: On 06/17/2013 04:10 PM, Eric Anholt wrote: I noticed this while trying to merge code with the builtin compiler, which does set it. Note that this causes two regressions in piglit in

[Mesa-dev] Mesa driver for VirtualBox

2013-06-20 Thread Michael Thayer
Hello, I am looking at the possibility of writing a driver for VirtualBox (ahem, yes) which could partly live inside of the Mesa tree. My initial idea was to have the driver in two parts, a driver/client part in the Mesa tree and a server part in the VirtualBox tree which would communicate

Re: [Mesa-dev] [PATCH 0/6] Eliminating unused built-in varyings

2013-06-20 Thread Stefan Dösinger
Hi, Am 19.06.2013 um 13:22 schrieb Marek Olšák mar...@gmail.com: Could somebody please review this series? I don't really know the code well enough to give a meaningful review, but I've tested the patches with Wine on r300g and they work as advertised :-) . Rendering is OK, and 3DMark2000

[Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Jonathan Gray
The symlinks for compatibility with old scripts assumes sysv shared library versioning and breaks other systems. For example OpenBSD uses sunos 4 style .so.major.minor versioning so the targets with ln will fail. Fixes bug 63269. Signed-off-by: Jonathan Gray j...@jsg.id.au ---

Re: [Mesa-dev] [PATCH 2/2] i965: Remove broken source type assertions from brw_alu3().

2013-06-20 Thread Anuj Phogat
On Thu, Jun 13, 2013 at 2:55 PM, Kenneth Graunke kenn...@whitecape.org wrote: Commit 526ffdfc033ab01cf133cb7e8290c65d12ccc9be attempted to generalize the source register type assertions to allow D and UD. However, the src1 and src2 assertions actually checked src0.type against D and UD due to

[Mesa-dev] [Bug 56710] src/mapi/glapi/glapitemp.h:1640:1: warning: no previous prototype for ‘glReadBufferNV’ [-Wmissing-prototypes]

2013-06-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56710 Andreas Boll andreas.boll@gmail.com changed: What|Removed |Added QA Contact|

[Mesa-dev] [PATCH] llvmpipe: fix wrong results for queries not in a scene

2013-06-20 Thread sroland
From: Roland Scheidegger srol...@vmware.com The result isn't always 0 in this case (depends on query type), so instead of special casing this just use the ordinary path (should result in correct values thanks to initialization in query_begin/end), just skipping the fence wait. ---

Re: [Mesa-dev] [PATCH 1/3] R600: Expand v2i32 load/store instead of custom lowering

2013-06-20 Thread Tom Stellard
On Wed, Jun 19, 2013 at 08:51:01AM -0700, Tom Stellard wrote: On Mon, Jun 17, 2013 at 04:11:38PM -0500, Aaron Watry wrote: The custom lowering causes llc to crash with a segfault. Ideally, the custom lowering can be fixed, but this allows programs which load/store v2i32 to work without

Re: [Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Dave Airlie
On Fri, Jun 21, 2013 at 2:28 AM, Jonathan Gray j...@jsg.id.au wrote: The symlinks for compatibility with old scripts assumes sysv shared library versioning and breaks other systems. For example OpenBSD uses sunos 4 style .so.major.minor versioning so the targets with ln will fail. Fixes bug

Re: [Mesa-dev] Mesa driver for VirtualBox

2013-06-20 Thread Dave Airlie
On Fri, Jun 21, 2013 at 12:47 AM, Michael Thayer michael.tha...@oracle.com wrote: Hello, I am looking at the possibility of writing a driver for VirtualBox (ahem, yes) which could partly live inside of the Mesa tree. My initial idea was to have the driver in two parts, a driver/client part

Re: [Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Brian Paul
On 06/20/2013 03:32 PM, Dave Airlie wrote: On Fri, Jun 21, 2013 at 2:28 AM, Jonathan Gray j...@jsg.id.au wrote: The symlinks for compatibility with old scripts assumes sysv shared library versioning and breaks other systems. For example OpenBSD uses sunos 4 style .so.major.minor versioning so

[Mesa-dev] R600: Expand integer operations for SI and consolidate code with EG

2013-06-20 Thread Aaron Watry
This series is intended to bring SI closer to evergreen when it comes to support for v2i32/v4i32 integer operations. It adds support for expanding the following v2i32/v4i32 operations on SI: AND, MUL, OR, SHL, SRL, ASHR, UDIV, UREM, XOR Once that's done, the setOperationAction(op,type,Expand)

[Mesa-dev] [PATCH 01/12] R600/SI: Expand and of v2i32/v4i32 for SI

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Signed-off-by: Aaron Watry awa...@gmail.com --- lib/Target/R600/SIISelLowering.cpp | 3 +++ test/CodeGen/R600/and.ll | 37 +++-- 2 files changed, 34 insertions(+), 6 deletions(-) diff

[Mesa-dev] [PATCH 02/12] R600/SI: Expand mul of v2i32/v4i32 for SI

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Signed-off-by: Aaron Watry awa...@gmail.com --- lib/Target/R600/SIISelLowering.cpp | 3 +++ test/CodeGen/R600/mul.ll | 38 -- 2 files changed, 35 insertions(+), 6 deletions(-) diff

[Mesa-dev] [PATCH 03/12] R600/SI: Expand or of v2i32/v4i32 for SI

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Signed-off-by: Aaron Watry awa...@gmail.com --- lib/Target/R600/SIISelLowering.cpp | 3 +++ test/CodeGen/R600/or.ll| 41 +++--- 2 files changed, 37 insertions(+), 7 deletions(-) diff

[Mesa-dev] [PATCH 04/12] R600/SI: Expand shl of v2i32/v4i32 for SI

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Signed-off-by: Aaron Watry awa...@gmail.com --- lib/Target/R600/SIISelLowering.cpp | 3 +++ test/CodeGen/R600/shl.ll | 47 ++ 2 files changed, 40 insertions(+), 10 deletions(-) diff

[Mesa-dev] [PATCH 05/12] R600/SI: Expand srl of v2i32/v4i32 for SI

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Signed-off-by: Aaron Watry awa...@gmail.com --- lib/Target/R600/SIISelLowering.cpp | 2 ++ test/CodeGen/R600/srl.ll | 42 +++--- 2 files changed, 37 insertions(+), 7 deletions(-) diff

[Mesa-dev] [PATCH 06/12] R600/SI: Expand ashr of v2i32/v4i32 for SI

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Signed-off-by: Aaron Watry awa...@gmail.com --- lib/Target/R600/SIISelLowering.cpp | 2 ++ test/CodeGen/R600/sra.ll | 41 +++--- 2 files changed, 36 insertions(+), 7 deletions(-) diff

[Mesa-dev] [PATCH 07/12] R600/SI: Expand udiv v[24]i32 for SI and v2i32 for EG

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Note: I followed the guidance of the v4i32 EG check... UDIV produces really complex code, so let's just check that the instruction was lowered successfully. Signed-off-by: Aaron Watry awa...@gmail.com ---

[Mesa-dev] [PATCH 08/12] R600/SI: Expand urem of v2i32/v4i32 for SI

2013-06-20 Thread Aaron Watry
Also add lit test for both cases on SI, and v2i32 for evergreen. Note: I followed the guidance of the v4i32 EG check... UREM produces really complex code, so let's just check that the instruction was lowered successfully. Signed-off-by: Aaron Watry awa...@gmail.com ---

[Mesa-dev] [PATCH 09/12] R600: Add v2i32 test for setcc on evergreen

2013-06-20 Thread Aaron Watry
No test/expansion for SI has been added yet. Attempts to expand this operation for SI resulted in a stacktrace in (IIRC) LegalizeIntegerTypes which was complaining about vector comparisons being required to return a vector type. Signed-off-by: Aaron Watry awa...@gmail.com ---

[Mesa-dev] [PATCH 10/12] R600/SI: Expand xor v2i32/v4i32

2013-06-20 Thread Aaron Watry
Add test cases for both vector sizes on SI and also add v2i32 test for EG. Signed-off-by: Aaron Watry awa...@gmail.com --- lib/Target/R600/SIISelLowering.cpp | 3 +++ test/CodeGen/R600/xor.ll | 40 +++--- 2 files changed, 36 insertions(+), 7

[Mesa-dev] [PATCH 11/12] R600: Add v2i32 test for vselect

2013-06-20 Thread Aaron Watry
Note: Only adding test for evergreen, not SI yet. When I attempted to expand vselect for SI, I got the following: llc: /home/awatry/src/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:522: llvm::SDValue llvm::DAGTypeLegalizer::PromoteIntRes_SETCC(llvm::SDNode*): Assertion `SVT.isVector()

[Mesa-dev] [PATCH 12/12] R600: Consolidate expansion of v2i32/v4i32 ops for EG/SI

2013-06-20 Thread Aaron Watry
By default, we expand these operations for both EG and SI. Move the duplicated code into a common space for now. If the targets ever actually implement these operations as instructions, we can override that in the relevant target. Signed-off-by: Aaron Watry awa...@gmail.com ---

[Mesa-dev] New Device Driver Help‏

2013-06-20 Thread Li Andy
Hello everyone, My name is Andy. I am a university student from Canada.I am currently working on a project which I am trying to port the mesa library to another device. (the Altera DE2)I am wondering if anyone can give me some suggestions to get started.Any information would be great! My email

Re: [Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Jonathan Gray
On Thu, Jun 20, 2013 at 04:00:04PM -0600, Brian Paul wrote: On 06/20/2013 03:32 PM, Dave Airlie wrote: On Fri, Jun 21, 2013 at 2:28 AM, Jonathan Gray j...@jsg.id.au wrote: The symlinks for compatibility with old scripts assumes sysv shared library versioning and breaks other systems. For

Re: [Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Kenneth Graunke
On 06/20/2013 06:45 PM, Jonathan Gray wrote: On Thu, Jun 20, 2013 at 04:00:04PM -0600, Brian Paul wrote: On 06/20/2013 03:32 PM, Dave Airlie wrote: On Fri, Jun 21, 2013 at 2:28 AM, Jonathan Gray j...@jsg.id.au wrote: The symlinks for compatibility with old scripts assumes sysv shared library

Re: [Mesa-dev] [PATCH 2/2] mesa: Move the common _mesa_glsl_compile_shader() code to glsl/.

2013-06-20 Thread Kenneth Graunke
On 06/19/2013 04:19 PM, Eric Anholt wrote: This code had no relation to ir_to_mesa.cpp, since it was also used by intel and state_tracker, and most of it was duplicated with the standalone compiler (which has periodically drifted from the Mesa copy). v2: Split from the ir_to_mesa to shaderapi.c

Re: [Mesa-dev] [PATCH] build: remove script compatibility symlinks

2013-06-20 Thread Jonathan Gray
On Thu, Jun 20, 2013 at 08:32:03PM -0700, Kenneth Graunke wrote: On 06/20/2013 06:45 PM, Jonathan Gray wrote: On Thu, Jun 20, 2013 at 04:00:04PM -0600, Brian Paul wrote: On 06/20/2013 03:32 PM, Dave Airlie wrote: On Fri, Jun 21, 2013 at 2:28 AM, Jonathan Gray j...@jsg.id.au wrote: The