[Mesa-dev] [Bug 86195] Lightswork video editor segfaults

2014-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86195 --- Comment #2 from Iaroslav Andrusyak pontost...@gmail.com --- Created attachment 109393 -- https://bugs.freedesktop.org/attachment.cgi?id=109393action=edit stderr -- You are receiving this mail because: You are the assignee for the bug.

[Mesa-dev] [Bug 86195] Lightswork video editor segfaults

2014-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86195 --- Comment #3 from Michel Dänzer mic...@daenzer.net --- (In reply to Iaroslav Andrusyak from comment #2) stderr Did that crash as well? There's only one LLVM dump in there, and no immediate sign of a crash. If it did crash, can you try again

Re: [Mesa-dev] [PATCH 3/4] i965/vec4: Combine all the math emitters.

2014-11-13 Thread Kenneth Graunke
On Wednesday, November 12, 2014 09:57:30 PM Matt Turner wrote: On Wed, Nov 12, 2014 at 9:35 PM, Kenneth Graunke kenn...@whitecape.org wrote: +vec4_visitor::emit_math(enum opcode opcode, + dst_reg dst, src_reg src0, src_reg src1) I think you can make the arguments

[Mesa-dev] [Bug 86195] Lightswork video editor segfaults

2014-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86195 --- Comment #4 from Iaroslav Andrusyak pontost...@gmail.com --- DRAW_USE_LLVM=0 does not help, and there is no output in console from LW, Lightswork totally silent. I have only several logs in lightswork folder. StdErr.log and error.log --

[Mesa-dev] [Bug 86195] Lightswork video editor segfaults

2014-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86195 --- Comment #5 from Iaroslav Andrusyak pontost...@gmail.com --- Created attachment 109395 -- https://bugs.freedesktop.org/attachment.cgi?id=109395action=edit error -- You are receiving this mail because: You are the assignee for the bug.

Re: [Mesa-dev] [PATCH 3/3] gk20a: use NOUVEAU_BO_GART as VRAM domain

2014-11-13 Thread Alexandre Courbot
On 10/30/2014 12:29 AM, Ilia Mirkin wrote: On Mon, Oct 27, 2014 at 6:34 AM, Alexandre Courbot acour...@nvidia.com wrote: GK20A does not have dedicated VRAM, therefore allocating in VRAM can be sub-optimal and sometimes even harmful. Set its VRAM domain to NOUVEAU_BO_GART so all objects are

Re: [Mesa-dev] [PATCH] llvmpipe: Avoid deadlock when unloading opengl32.dll

2014-11-13 Thread Jose Fonseca
Hi Tom, That's peculiar. It looks like pthreads got into a weird state somehow. Don't precisely understand how though. Maybe there's a race inside pipe_semaphore_signal() with the destruction of the semaphore. I think the best thing for now is to revert to old behavior for non-windows

Re: [Mesa-dev] [PATCH] radeonsi: Disable asynchronous DMA except for PIPE_BUFFER

2014-11-13 Thread Marek Olšák
Reviewed-by: Marek Olšák marek.ol...@amd.com I suggest pasting the commit message into the code. Marek On Thu, Nov 13, 2014 at 7:52 AM, Michel Dänzer mic...@daenzer.net wrote: From: Michel Dänzer michel.daen...@amd.com Using the asynchronous DMA engine for multi-dimensional operations seems

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Jose Fonseca
Thanks for doing this. It's has been long overdue. Unfortunately we are relying on TGSI_OPCODE_CND/TGSI_OPCODE_ARR internally. I'm also interested in cutting down used opcodes, so I'll try to replace their usage with something else. But until then please hold on to those two patches. The

Re: [Mesa-dev] [PATCH 2/4] i965/vec4: Use const references in emit() functions.

2014-11-13 Thread Francisco Jerez
Kenneth Graunke kenn...@whitecape.org writes: Signed-off-by: Kenneth Graunke kenn...@whitecape.org Reviewed-by: Francisco Jerez curroje...@riseup.net --- src/mesa/drivers/dri/i965/brw_vec4.h | 18 -- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 11 ++-

Re: [Mesa-dev] [PATCH 1/4] i965: Use macros to create prototypes for emitter helpers.

2014-11-13 Thread Francisco Jerez
Kenneth Graunke kenn...@whitecape.org writes: We do this almost everywhere else; this should make it easier to modify. Signed-off-by: Kenneth Graunke kenn...@whitecape.org For this patch: Reviewed-by: Francisco Jerez curroje...@riseup.net --- src/mesa/drivers/dri/i965/brw_vec4.h | 98

Re: [Mesa-dev] [PATCH 3/4] i965/vec4: Combine all the math emitters.

2014-11-13 Thread Francisco Jerez
Kenneth Graunke kenn...@whitecape.org writes: On Wednesday, November 12, 2014 09:57:30 PM Matt Turner wrote: On Wed, Nov 12, 2014 at 9:35 PM, Kenneth Graunke kenn...@whitecape.org wrote: +vec4_visitor::emit_math(enum opcode opcode, + dst_reg dst, src_reg src0,

Re: [Mesa-dev] [PATCH 4/4] i965/vec4: Make src_reg immediate constructors explicit.

2014-11-13 Thread Francisco Jerez
Kenneth Graunke kenn...@whitecape.org writes: We did this for fs_reg a while back, and it's generally a good idea. I disagree, explicit constructors aren't a one-size-fits-all. IMO there are three scenarios in which explicit constructors may be a good idea: - Cases where your constructor may

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Jose Fonseca
It looks like ARR is generated, as src/gallium/state_trackers/nine/nine_shader.c has #define _OPI(o,t,vv1,vv2,pv1,pv2,d,s,h) \ { D3DSIO_##o, TGSI_OPCODE_##t, { vv1, vv2 }, { pv1, pv2, }, d, s, h } [...] _OPI(MOVA, ARR, V(2,0), V(3,0), V(0,0), V(0,0), 1, 1, NULL), Jose

Re: [Mesa-dev] [PATCH] llvmpipe: Avoid deadlock when unloading opengl32.dll

2014-11-13 Thread Tom Stellard
On Thu, Nov 13, 2014 at 11:10:39AM +, Jose Fonseca wrote: Hi Tom, That's peculiar. It looks like pthreads got into a weird state somehow. Don't precisely understand how though. Maybe there's a race inside pipe_semaphore_signal() with the destruction of the semaphore. I think the

[Mesa-dev] [PATCH] linker: Add a missing space in an error message

2014-11-13 Thread Neil Roberts
--- src/glsl/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index bd2aa3c..41d6a82 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2411,7 +2411,7 @@ reserve_explicit_locations(struct gl_shader_program *prog,

Re: [Mesa-dev] [PATCH] linker: Add a missing space in an error message

2014-11-13 Thread Brian Paul
On 11/13/2014 08:32 AM, Neil Roberts wrote: --- src/glsl/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index bd2aa3c..41d6a82 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -2411,7 +2411,7 @@

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Brian Paul
On 11/12/2014 06:18 PM, Eric Anholt wrote: This series removes a bunch of unused opcodes, mostly from TGSI. It doesn't go as far as we could possibly go -- while I welcome discussion for future patch series deleting more, I hope that discussion doesn't derail the review process for these

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Marek Olšák
Nine can lower ARR into ROUND+ARL easily. Marek On Thu, Nov 13, 2014 at 3:33 PM, Jose Fonseca jfons...@vmware.com wrote: It looks like ARR is generated, as src/gallium/state_trackers/nine/nine_shader.c has #define _OPI(o,t,vv1,vv2,pv1,pv2,d,s,h) \ { D3DSIO_##o, TGSI_OPCODE_##t, { vv1,

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Marek Olšák
This looks good to me. Other candidates for removal: SUB (same as ADD with the Negate bit inverted) CLAMP (same as MIN+MAX), some drivers don't implement this ABS (same as MOV with the Abs bit set) Marek On Thu, Nov 13, 2014 at 2:18 AM, Eric Anholt e...@anholt.net wrote: This series removes

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Ilia Mirkin
As long as we have NAND, pretty much anything can be lowered to that... I am, of course, not advocating keeping around every insane instruction, but it does seem a bit arbitrary as to which ones we have and which ones we don't... I am personally guilty of adding a bunch, and it was never clear to

Re: [Mesa-dev] [PATCH 0/9] i915: Gen2 texturing fixes and a few random patches

2014-11-13 Thread Ville Syrjälä
On Wed, Aug 06, 2014 at 09:56:30PM +0300, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com I had a few rainy days during my summer vacation so I decided to fix a chromnium-bsu texturing problem that was nagging me for a while now. I ended up fixing a few

Re: [Mesa-dev] [PATCH] i965: Always enable VF statistics

2014-11-13 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: On Wednesday, November 12, 2014 06:54:31 PM Ben Widawsky wrote: Every other unit in the geometry pipeline automatically enables statistics gathering. This part of the pipe has been controlled by the DEBUG_STATS variable, but this is asymmetric.

[Mesa-dev] [PATCH 06/13 v2] gallium: Drop the unused ARA opcode.

2014-11-13 Thread Eric Anholt
Nothing in the tree generated it. --- The rest of the rebase to deal with the conflicts with this can be found at tgsi-opcode-nuke-2 of my Mesa tree. (CND is also left in there) src/gallium/auxiliary/gallivm/lp_bld_tgsi.c | 1 - src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c | 6 --

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Roland Scheidegger
It looks like ARR is mildly useful though as hw often can implement it natively and it benefits at least one state tracker (not that and optimizing backend couldn't recognize round+arl but llvmpipe wouldn't at least right now). So, maybe it would be better to keep it for now. Roland Am

Re: [Mesa-dev] [PATCH 3/4] i965/vec4: Combine all the math emitters.

2014-11-13 Thread Kenneth Graunke
On Thursday, November 13, 2014 03:09:22 PM Francisco Jerez wrote: Kenneth Graunke kenn...@whitecape.org writes: On Wednesday, November 12, 2014 09:57:30 PM Matt Turner wrote: On Wed, Nov 12, 2014 at 9:35 PM, Kenneth Graunke kenn...@whitecape.org wrote: +vec4_visitor::emit_math(enum

Re: [Mesa-dev] [PATCH] i965: Always enable VF statistics

2014-11-13 Thread Ben Widawsky
On Thu, Nov 13, 2014 at 09:47:10AM -0800, Eric Anholt wrote: Kenneth Graunke kenn...@whitecape.org writes: On Wednesday, November 12, 2014 06:54:31 PM Ben Widawsky wrote: Every other unit in the geometry pipeline automatically enables statistics gathering. This part of the pipe has been

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Jose Fonseca
Initially TGSI used to be an union of all possible opcodes (NV/ARB fp/vp, Mesa IR, D3D Shader Model 1.x, 2.x, more recently D3D10). But in practice it's just too much of a hassle, and many of the opcodes were never handled or generated. Many received little to no testing. Particularly when

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Jose Fonseca
I've eliminated our internal dependency on TGSI_OPCODE_CND (by replacing SUB+CMP). So you can commit the change to remove it as far as I'm concerned. I have mixed feelings about ARR, because the operation it does is essentially an iround(), i.e., (int)roundf(), and at least when targeting

[Mesa-dev] [Bug 86070] Host application crash on vmware fusion 7 in vmw_swc_flush

2014-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86070 Sinclair Yeh s...@vmware.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED

Re: [Mesa-dev] Removing unused opcodes (TGSI, Mesa IR)

2014-11-13 Thread Roland Scheidegger
FWIW opencl explicit conversion instructions have optional rounding mode modifiers. Roland Am 13.11.2014 um 21:19 schrieb Jose Fonseca: I've eliminated our internal dependency on TGSI_OPCODE_CND (by replacing SUB+CMP). So you can commit the change to remove it as far as I'm concerned. I

Re: [Mesa-dev] [PATCH 2/3] mesa/main: Add sse2 streaming clamping

2014-11-13 Thread Bruno Jimenez
On Wed, 2014-11-12 at 21:47 +0200, Juha-Pekka Heikkila wrote: On 12.11.2014 19:36, Bruno Jimenez wrote: On Wed, 2014-11-12 at 14:50 +0200, Juha-Pekka Heikkila wrote: Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com --- src/mesa/Makefile.am | 8 +++

Re: [Mesa-dev] [PATCH 4/4] i965/fs: Remove is_valid_3src().

2014-11-13 Thread Anuj Phogat
On Wed, Nov 12, 2014 at 11:15 AM, Matt Turner matts...@gmail.com wrote: --- src/mesa/drivers/dri/i965/brw_fs.cpp | 6 -- src/mesa/drivers/dri/i965/brw_fs.h | 1 - src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 2 +- 3 files changed, 1 insertion(+), 8 deletions(-)

[Mesa-dev] [PATCH 3/4] r600g/compute: Stop leaking CL shader RAM/VRAM

2014-11-13 Thread Aaron Watry
shader-code_bo was leaked VRAM shader-bc.bytecode, shader-binary.* were leaked system memory. Signed-off-by: Aaron Watry awa...@gmail.com --- src/gallium/drivers/r600/evergreen_compute.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/drivers/r600/evergreen_compute.c

[Mesa-dev] [PATCH 4/4] aux/pipe_loader: Don't leak dlerror string on dlopen failure

2014-11-13 Thread Aaron Watry
dlopen allocates a string on dlopen failure which is retrieved via dlerror. In order to free that string, you need to retrieve and then free it. In order to keep things legit the windows/other util_dl_error paths allocate and then copy their error message into a buffer as well. Signed-off-by:

[Mesa-dev] [PATCH 2/4] r600g/compute: Stop leaking CL kernel bytecode/resources

2014-11-13 Thread Aaron Watry
v3: Rebase and add #if guards v2: fix indentation Signed-off-by: Aaron Watry awa...@gmail.com --- src/gallium/drivers/r600/evergreen_compute.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/src/gallium/drivers/r600/evergreen_compute.c

[Mesa-dev] [PATCH 1/4] r600g/compute: Don't leak cbufs in compute state

2014-11-13 Thread Aaron Watry
Walk the array of cbufs backwards and free all of them. v3: Rebase on top of changes since Aug 2014 Signed-off-by: Aaron Watry awa...@gmail.com --- src/gallium/drivers/r600/evergreen_compute.c | 9 + 1 file changed, 9 insertions(+) diff --git

Re: [Mesa-dev] [PATCH 4/4] aux/pipe_loader: Don't leak dlerror string on dlopen failure

2014-11-13 Thread Ilia Mirkin
On Thu, Nov 13, 2014 at 6:43 PM, Aaron Watry awa...@gmail.com wrote: dlopen allocates a string on dlopen failure which is retrieved via dlerror. In order to free that string, you need to retrieve and then free it. Are you basically saying that glibc leaks memory and you're trying to make up for

[Mesa-dev] [Bug 86070] Host application crash on vmware fusion 7 in vmw_swc_flush

2014-11-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=86070 --- Comment #8 from Nicholas Yue yue.nicho...@gmail.com --- (In reply to Sinclair Yeh from comment #7) This issue has been fixed by ce9a3a8997d86f3bf387f23578972acb5b16ac4ac, which is in MESA 10.1.0 onwards. The fix is not trivial to back port

[Mesa-dev] [PATCH v2 08/16] i965: Consolidate code to get struct brw_sampler_prog_key_data

2014-11-13 Thread Kristian Høgsberg
This chunk of code is repeated in a few places, and we're going to add a MESA_SHADER_VERTEX case to it soon. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 37 1 file changed, 16 insertions(+), 21 deletions(-)

[Mesa-dev] [PATCH v2 06/16] i965: Add SIMD8 URB write low-level IR instruction

2014-11-13 Thread Kristian Høgsberg
This is all we need from the generator for SIMD8 vertex shaders. This opcode is just the send instruction, all the hard work will happen in the visitor using LOAD_PAYLOAD. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_defines.h | 3 +++

[Mesa-dev] [PATCH v2 04/16] i965: Set shader name for generator from call site

2014-11-13 Thread Kristian Høgsberg
fs_generator no longer knows what stage it's generating code for, so we have to set the debug name of the shader from the call site. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 4 +++- src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH v2 12/16] i965: Move fs_visitor optimization pass into new method fs_visitor::optimize()

2014-11-13 Thread Kristian Høgsberg
We'll reuse this toplevel optimization driver for the scalar VS. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 136 ++- src/mesa/drivers/dri/i965/brw_fs.h | 1 + 2 files changed, 72 insertions(+), 65

[Mesa-dev] [PATCH v2 13/16] i965: Move fs_visitor ra pass to new fs_visitor::allocate_registers()

2014-11-13 Thread Kristian Høgsberg
This will be reused for the scalar VS pass. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 132 +++ src/mesa/drivers/dri/i965/brw_fs.h | 1 + 2 files changed, 71 insertions(+), 62 deletions(-) diff --git

[Mesa-dev] [PATCH v2 00/16] Scalar VS for BDW+

2014-11-13 Thread Kristian Høgsberg
Hi, Here's v2 of the patch series. It incorportes Matts review comments and adds a new patch to refactor the way we call fs_generator. The idea is to get rid of the MESA_SHADER_FS assertion in generate_assembly)() in a nicer way. Now we call generate_code() two times with different dispatch

[Mesa-dev] [PATCH v2 15/16] i965: Clean up fs_visitor::run and rename to run_fs

2014-11-13 Thread Kristian Høgsberg
Now that fs_visitor::run is back to being only fragment shader compilation, we can clean up a few stage == MESA_SHADER_FRAGMENT conditions and rename it to run_fs. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 31 +--

[Mesa-dev] [PATCH v2 05/16] i965: Remove shader program argument and member from fs_generator

2014-11-13 Thread Kristian Høgsberg
Now that the caller passes in the shader debug name, we don't need this anymore. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 2 +- src/mesa/drivers/dri/i965/brw_fs.cpp| 2 +- src/mesa/drivers/dri/i965/brw_fs.h

[Mesa-dev] [PATCH v2 02/16] i965: Refactor fs_generator API

2014-11-13 Thread Kristian Høgsberg
We split out SIMD8 and SIMD16 generation into seperate calls to new method generate_code(), which returns the start offset for the generated code. A new get_assembly() method returns the generated code. This avoids asserting MESA_SHADER_FRAGMENT and accessing wm_prog_data in the generator.

[Mesa-dev] [PATCH v2 01/16] i965: Don't copy propagate sat MOVs into LOAD_PAYLOAD

2014-11-13 Thread Kristian Høgsberg
The LOAD_PAYLOAD opcode can't saturate its sources, so skip saturating MOVs. The register coalescing after lower_load_payload() will clean up the extra MOVs. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp | 6 +- 1 file changed,

[Mesa-dev] [PATCH v2 09/16] i965: Prepare for using the ATTR register file in the fs backend

2014-11-13 Thread Kristian Høgsberg
The scalar vertex shader will use the ATTR register file for vertex attributes. This patch adds support for the ATTR file to fs_visitor. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 12 ++-- src/mesa/drivers/dri/i965/brw_fs.h

[Mesa-dev] [PATCH v2 11/16] i965: Move more code into codegen-branch of the fs_visitor::run() if statement

2014-11-13 Thread Kristian Høgsberg
These last few operations all only apply when we've actually generated code, optimized and allocated registers. The dummy and the repclear shaders don't touch uncompressed_stack, don't need the gen4 send workaround, and don't spill. This means we can move these lines into the else-branch, which

[Mesa-dev] [PATCH v2 07/16] i965: Add new SIMD8 VS prog data flag

2014-11-13 Thread Kristian Høgsberg
This flag signals that we have a SIMD8 VS shader so we can set up the corresponding state accordingly. This boils down to setting the BDW+ SIMD8 enable bit in 3DSTATE_VS and making UBO and pull constant buffers use dword pitch. Signed-off-by: Kristian Høgsberg k...@bitplanet.net ---

[Mesa-dev] [PATCH v2 16/16] i965: Generate vs code using scalar backend for BDW+

2014-11-13 Thread Kristian Høgsberg
With everything in place, we can now use the scalar backend compiler for vertex shaders on BDW+. We make scalar vertex shaders the default on BDW+ but add a new vec4vs debug option to force the vec4 backend. No piglit regressions. Performance impact is minimal, I see a ~1.5 improvement on the

[Mesa-dev] [PATCH v2 03/16] i965: Generalize fs_generator further

2014-11-13 Thread Kristian Høgsberg
This removes all stage specific data from the generator, and lets us create a generator for any stage. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp | 5 ++--- src/mesa/drivers/dri/i965/brw_fs.cpp| 2 +-

[Mesa-dev] [PATCH v2 10/16] i965: Rename brw_vec4_prog_data to brw_vue_prog_data

2014-11-13 Thread Kristian Høgsberg
With scalar vertex shader coming up, we're going to reuse brw_vec4_prog_data in the scalar backend. There's nothing vec4 specific in the struct, it's instead common state for stages that operate on VUEs. This patch renames the struct to brw_vue_prog_data which is more descriptive and will look a

[Mesa-dev] [PATCH v2 14/16] i965: Add fs_visitor::run_vs() to generate scalar vertex shader code

2014-11-13 Thread Kristian Høgsberg
This patch uses the previous refactoring to add a new run_vs() method that generates vertex shader code using the scalar visitor and optimizer. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 99 - src/mesa/drivers/dri/i965/brw_fs.h

Re: [Mesa-dev] [PATCH 4/4] aux/pipe_loader: Don't leak dlerror string on dlopen failure

2014-11-13 Thread Aaron Watry
On Thu, Nov 13, 2014 at 6:22 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Thu, Nov 13, 2014 at 6:43 PM, Aaron Watry awa...@gmail.com wrote: dlopen allocates a string on dlopen failure which is retrieved via dlerror. In order to free that string, you need to retrieve and then free it. Are

Re: [Mesa-dev] [PATCH 4/4] aux/pipe_loader: Don't leak dlerror string on dlopen failure

2014-11-13 Thread Ilia Mirkin
On Thu, Nov 13, 2014 at 7:54 PM, Aaron Watry awa...@gmail.com wrote: On Thu, Nov 13, 2014 at 6:22 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Thu, Nov 13, 2014 at 6:43 PM, Aaron Watry awa...@gmail.com wrote: dlopen allocates a string on dlopen failure which is retrieved via dlerror. In

Re: [Mesa-dev] How difficult would it be to have debugging information for Jitted code show up?

2014-11-13 Thread Steven Stewart-Gallus
But my distribution does build Mesa with debugging symbols. I have the package libgl1-mesa-dri-dbg installed which gives me debugging symbols such as drm_intel_bo_wait_rendering and drm_intel_bo_subdata. I assume I don't have is debugging information for JITted code although maybe the problem is a

Re: [Mesa-dev] How difficult would it be to have debugging information for Jitted code show up?

2014-11-13 Thread Emil Velikov
Hi Steven, On 14 November 2014 01:40, Steven Stewart-Gallus sstewartgallu...@mylangara.bc.ca wrote: But my distribution does build Mesa with debugging symbols. I have the package libgl1-mesa-dri-dbg installed which gives me debugging symbols such as drm_intel_bo_wait_rendering and

Re: [Mesa-dev] [PATCH 4/4] aux/pipe_loader: Don't leak dlerror string on dlopen failure

2014-11-13 Thread Aaron Watry
On Thu, Nov 13, 2014 at 7:04 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Thu, Nov 13, 2014 at 7:54 PM, Aaron Watry awa...@gmail.com wrote: On Thu, Nov 13, 2014 at 6:22 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Thu, Nov 13, 2014 at 6:43 PM, Aaron Watry awa...@gmail.com wrote: dlopen

Re: [Mesa-dev] [PATCH v2 13/16] i965: Move fs_visitor ra pass to new fs_visitor::allocate_registers()

2014-11-13 Thread Connor Abbott
On Thu, Nov 13, 2014 at 7:28 PM, Kristian Høgsberg k...@bitplanet.net wrote: This will be reused for the scalar VS pass. Signed-off-by: Kristian Høgsberg k...@bitplanet.net --- src/mesa/drivers/dri/i965/brw_fs.cpp | 132 +++

Re: [Mesa-dev] [PATCH 1/4] r600g/compute: Don't leak cbufs in compute state

2014-11-13 Thread Michel Dänzer
On 14.11.2014 08:43, Aaron Watry wrote: Walk the array of cbufs backwards and free all of them. v3: Rebase on top of changes since Aug 2014 Signed-off-by: Aaron Watry awa...@gmail.com --- src/gallium/drivers/r600/evergreen_compute.c | 9 + 1 file changed, 9 insertions(+)

Re: [Mesa-dev] [PATCH v2 01/16] i965: Don't copy propagate sat MOVs into LOAD_PAYLOAD

2014-11-13 Thread Matt Turner
On Thu, Nov 13, 2014 at 4:28 PM, Kristian Høgsberg k...@bitplanet.net wrote: The LOAD_PAYLOAD opcode can't saturate its sources, so skip saturating MOVs. The register coalescing after lower_load_payload() will clean up the extra MOVs. Signed-off-by: Kristian Høgsberg k...@bitplanet.net ---

Re: [Mesa-dev] [PATCH v2 09/16] i965: Prepare for using the ATTR register file in the fs backend

2014-11-13 Thread Matt Turner
On Thu, Nov 13, 2014 at 4:28 PM, Kristian Høgsberg k...@bitplanet.net wrote: @@ -3148,6 +3150,9 @@ fs_visitor::dump_instruction(backend_instruction *be_inst, FILE *file) case UNIFORM: fprintf(file, ***u%d***, inst-dst.reg + inst-dst.reg_offset); break; + case ATTR: +

Re: [Mesa-dev] How difficult would it be to have debugging information for Jitted code show up?

2014-11-13 Thread Emil Velikov
On 14 November 2014 01:48, Emil Velikov emil.l.veli...@gmail.com wrote: Hi Steven, On 14 November 2014 01:40, Steven Stewart-Gallus sstewartgallu...@mylangara.bc.ca wrote: But my distribution does build Mesa with debugging symbols. I have the package libgl1-mesa-dri-dbg installed which

[Mesa-dev] [PATCH] i965: Don't call _mesa_load_state_parameters when nr_params == 0.

2014-11-13 Thread Kenneth Graunke
Saves a tiny bit of CPU overhead. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_vs_surface_state.c | 10 +- src/mesa/drivers/dri/i965/gen6_vs_state.c| 12 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git