Re: [Mesa-dev] Question regarding cs_gem_write_reloc in radeon_cs_gem.c

2012-06-21 Thread Miguel Ramos
2012/6/15 Marek Olšák : > On Fri, Jun 15, 2012 at 3:15 PM, Miguel Lopes Santos Ramos > wrote: >> Hi all, >> >> I'm trying to learn to program radeons in assembly in Linux and >> already got help once in this mailing list. >> >> I'm programming in C++ using the kernel DRM ioctls directly because >>

Re: [Mesa-dev] Question regarding cs_gem_write_reloc in radeon_cs_gem.c

2012-06-21 Thread Miguel Ramos
2012/6/15 Tom Stellard : > On Fri, Jun 15, 2012 at 02:15:34PM +0100, Miguel Lopes Santos Ramos wrote: >> Hi all, >> >> I'm trying to learn to program radeons in assembly in Linux and >> already got help once in this mailing list. >> >> I'm programming in C++ using the kernel DRM ioctls directly bec

[Mesa-dev] [PATCH] st/vdpau: fix YCbCr down/up-loads for buffers larger than requested

2012-06-21 Thread son_of_the_osiris
I cannot play some HD videos with even with current git master via VDPAU. Before I got some errors about unsupported pixel format from mplayer.However when I enable NPOT for video (on radeon 9600) I can see the movie without a problem.So maybe it is safe to enable it? __

[Mesa-dev] radeonsi: Add some additional SI pci ids

2012-06-21 Thread stuff
I noticed that there were some new pci id's added to radeonsi in april. I am running a board that isn't in the list so I thought I would throw it out. lspci gives the following. 04:00.0 VGA compatible controller: ATI Technologies Inc Device 683d This is an ASUS HD7770 based board.

Re: [Mesa-dev] [PATCH] i965: Compute dFdy() correctly for FBOs.

2012-06-21 Thread Kenneth Graunke
On 06/20/2012 04:08 PM, Paul Berry wrote: > On i965, dFdx() and dFdy() are computed by taking advantage of the > fact that each consecutive set of 4 pixels dispatched to the fragment > shader always constitutes a contiguous 2x2 block of pixels in a fixed > arrangement known as a "sub-span". So we

Re: [Mesa-dev] [PATCH] softpipe: Take all lods into account when texture sampling.

2012-06-21 Thread Olivier Galibert
On Wed, Jun 20, 2012 at 01:44:14PM +0100, Roland Scheidegger wrote: > A lot of code I just glossed over it, but seems to look ok other than > the (performance) implications this might have. Actually whether there's a performance implication is not obvious. In practice the code just kicks the 4-p

Re: [Mesa-dev] [PATCH 07/11 v3] gbm: add handle2(drm buffer region name)

2012-06-21 Thread Zhao, Halley
Thanks Ander. I updated the patch following your advice: >From 6110f8c5ed0dc326e85d07a3c5408be5810db245 Mon Sep 17 00:00:00 2001 From: Zhao Halley Date: Thu, 14 Jun 2012 18:19:12 +0800 Subject: [PATCH 07/10] gbm: add shared_handle(drm buffer region name) it can be shared among processed ---

Re: [Mesa-dev] [PATCH 09/11 v3] test: test case drm-test-client in src/egl/wayland/wayland-drm

2012-06-21 Thread Zhao, Halley
small update following gbm change: gbm_bo_get_shared_handle() From fb0e0eec5064f8af3e126a457fc23173a8bb6d49 Mon Sep 17 00:00:00 2001 From: Zhao Halley Date: Tue, 5 Jun 2012 14:59:56 +0800 Subject: [PATCH 09/10] test: test case drm-test-client in src/egl/wayland/wayland-drm - it shows how wayl

Re: [Mesa-dev] radeonsi: Add some additional SI pci ids

2012-06-21 Thread Michel Dänzer
On Mon, 2012-06-18 at 16:38 -0700, st...@cdnlinux.ca wrote: > I noticed that there were some new pci id's added to radeonsi in april. I am > running a board that isn't in the list so I thought I would throw it out. > lspci gives the following. > > 04:00.0 VGA compatible controller: ATI Technol

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-21 Thread Michel Dänzer
On Die, 2012-06-19 at 17:18 -0700, Kenneth Graunke wrote: > On 06/19/2012 11:27 AM, Paul Berry wrote: > > > > And the toplevel .emacs-dirvars file (which emacs automatically consults > > if the dirvars package is in use) configures emacs to automatically > > indent using spaces, not tabs, using th

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-21 Thread Olivier Galibert
On Thu, Jun 21, 2012 at 11:19:39AM +0200, Michel Dänzer wrote: > On Die, 2012-06-19 at 17:18 -0700, Kenneth Graunke wrote: > > Also, distribute the appropriate emacs and vim settings to indent things > > correctly. > > In any case, please do this *before* any kind of cleanup. (global-set-key [(c

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-21 Thread Michel Dänzer
On Don, 2012-06-21 at 11:38 +0200, Olivier Galibert wrote: > On Thu, Jun 21, 2012 at 11:19:39AM +0200, Michel Dänzer wrote: > > On Die, 2012-06-19 at 17:18 -0700, Kenneth Graunke wrote: > > > Also, distribute the appropriate emacs and vim settings to indent things > > > correctly. > > > > In any

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-21 Thread Dave Airlie
On Thu, Jun 21, 2012 at 10:19 AM, Michel Dänzer wrote: > On Die, 2012-06-19 at 17:18 -0700, Kenneth Graunke wrote: >> On 06/19/2012 11:27 AM, Paul Berry wrote: >> > >> > And the toplevel .emacs-dirvars file (which emacs automatically consults >> > if the dirvars package is in use) configures emacs

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-21 Thread Olivier Galibert
On Thu, Jun 21, 2012 at 11:58:57AM +0200, Michel Dänzer wrote: > On Don, 2012-06-21 at 11:38 +0200, Olivier Galibert wrote: > > On Thu, Jun 21, 2012 at 11:19:39AM +0200, Michel Dänzer wrote: > > > On Die, 2012-06-19 at 17:18 -0700, Kenneth Graunke wrote: > > > > Also, distribute the appropriate e

Re: [Mesa-dev] [PATCH] i965: Compute dFdy() correctly for FBOs.

2012-06-21 Thread Paul Berry
On 20 June 2012 23:35, Kenneth Graunke wrote: > On 06/20/2012 04:08 PM, Paul Berry wrote: > > On i965, dFdx() and dFdy() are computed by taking advantage of the > > fact that each consecutive set of 4 pixels dispatched to the fragment > > shader always constitutes a contiguous 2x2 block of pixels

[Mesa-dev] [PATCH] clover: Add a function internalizer pass before LTO

2012-06-21 Thread Tom Stellard
The function internalizer pass marks non-kernel functions as internal, which enables optimizations like function inlining and global dead-code elimination. --- .../state_trackers/clover/llvm/invocation.cpp | 58 1 files changed, 48 insertions(+), 10 deletions(-) diff -

Re: [Mesa-dev] Question regarding cs_gem_write_reloc in radeon_cs_gem.c

2012-06-21 Thread Alex Deucher
On Fri, Jun 15, 2012 at 11:16 AM, Miguel Ramos wrote: > 2012/6/15 Marek Olšák : >> On Fri, Jun 15, 2012 at 3:15 PM, Miguel Lopes Santos Ramos >> wrote: >>> Hi all, >>> >>> I'm trying to learn to program radeons in assembly in Linux and >>> already got help once in this mailing list. >>> >>> I'm p

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-21 Thread Brian Paul
On 06/19/2012 06:18 PM, Kenneth Graunke wrote: On 06/19/2012 11:27 AM, Paul Berry wrote: On 19 June 2012 10:29, Kenneth Graunke wrote: Whitespace errors here. I know Mesa isn't terribly consistent w.r.t. tabs or spaces, but in general these files use 3 space indent with 8 space tabs. Please use

Re: [Mesa-dev] Question regarding cs_gem_write_reloc in radeon_cs_gem.c

2012-06-21 Thread Miguel Lopes Santos Ramos
2012/6/21 Alex Deucher : > If you just want to play with simple shaders and setting up the 3D > pipeline, radeondemo is an easy place to start: > http://cgit.freedesktop.org/~airlied/radeondemo > > Alex Yes, I'm learning the assembly, because it helps me have a better understanding of the architec

Re: [Mesa-dev] [PATCH] r600g: Unify SURFACE_SYNC packet emission for 3D and compute

2012-06-21 Thread Tom Stellard
On Tue, Jun 19, 2012 at 03:11:28PM -0400, Jerome Glisse wrote: > On Tue, Jun 19, 2012 at 2:06 PM, Tom Stellard wrote: > > On Tue, Jun 19, 2012 at 07:57:50PM +0200, Marek Olšák wrote: > >> Hi Tom, > >> > >> This adds new calls to r600_inval_xxx_cache, which justs sets the > >> dirty flag in the ato

Re: [Mesa-dev] [PATCH] clover: Add --with-clang-libdir option and verify CLANG_RESOURCE_DIR

2012-06-21 Thread Tom Stellard
I'll commit this patch tomorrow if there aren't any objections. -Tom On Fri, Jun 15, 2012 at 4:52 PM, Tom Stellard wrote: > $CLANG_RESOURCE_DIR is the directory that contains all resources > needed by clang to compile programs.  When clover uses clang to > compile kernels it needs to specify a r

Re: [Mesa-dev] Question regarding cs_gem_write_reloc in radeon_cs_gem.c

2012-06-21 Thread Alex Deucher
On Thu, Jun 21, 2012 at 10:37 AM, Miguel Lopes Santos Ramos wrote: > 2012/6/21 Alex Deucher : >> If you just want to play with simple shaders and setting up the 3D >> pipeline, radeondemo is an easy place to start: >> http://cgit.freedesktop.org/~airlied/radeondemo >> >> Alex > > Yes, I'm learning

Re: [Mesa-dev] Mesa (master): draw: fix flat shading and screen-space linear interpolation in clipper

2012-06-21 Thread Jose Fonseca
Olivier, This patch series is causing regressions in select/feedback mode. Can you take a look? In piglit: piglit-ci/framework/../bin/select general Returncode: -11 And in conform: New LWP 15135] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-

Re: [Mesa-dev] Mesa (master): draw: fix flat shading and screen-space linear interpolation in clipper

2012-06-21 Thread Olivier Galibert
On Thu, Jun 21, 2012 at 10:28:22AM -0700, Jose Fonseca wrote: > This patch series is causing regressions in select/feedback mode. Can you > take a look? Sure. I wouldn't have expected that case to ever happen, but it makes sense now that I think of it. commit edc7b26b03c0393582ff5ec8c963207c755

[Mesa-dev] [PATCH] i965/fs: Fix conversions float->bool, int->bool

2012-06-21 Thread Kenneth Graunke
From: Chad Versace Fixes gles2conform GL.equal.equal_bvec2_frag. This fixes brw_fs_visitor's translation of ir_unop_f2b. It used CMP to convert the float to one of 0 or ~0. However, the convention in the compiler is that true is represented by 1, not ~0. This patch adds an AND to convert ~0 to

Re: [Mesa-dev] [PATCH] radeon/llvm: fix CR/LF

2012-06-21 Thread Tom Stellard
On Tue, Jun 19, 2012 at 07:50:22PM +0200, Andreas Boll wrote: > --- > src/gallium/drivers/radeon/AMDILSIDevice.h |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/gallium/drivers/radeon/AMDILSIDevice.h > b/src/gallium/drivers/radeon/AMDILSIDevice.h > index b272af

Re: [Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

2012-06-21 Thread Zack Rusin
On Thursday, June 21, 2012 11:19:39 AM Michel Dänzer wrote: > BTW, recent versions of emacs no longer seem to provide the dirvars > package, but I think they support another similar mechanism instead. > Would be great if somebody who knows more about this could > convert .emacs-dirvars to the curre