[Mesa-dev] [Bug 70264] EGL pkg-config does not provide correct cflags

2013-10-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70264 --- Comment #1 from Pekka Paalanen --- That proposed fix does not sound right. If you look at pkg-config manual, there are the PKG_CONFIG_ALLOW_SYSTEM_CFLAGS and PKG_CONFIG_ALLOW_SYSTEM_LIBS environment variables. pkg-config itself *deliberately*

[Mesa-dev] My apologies: I double sent patches

2013-10-07 Thread Rogovin, Kevin
Hello all, I really apologize, being new to git send-email and git format I managed to make a number of mistakes when I sent the patches for documentation: 1) I sent the patch set twice. 2) The second time I sent the patch set, I sent the first patch twice. The threads for each are labele

[Mesa-dev] [PATCH 3/3] doxy-text files added

2013-10-07 Thread Kevin Rogovin
--- doxygen/all.doxy | 1 + src/gbm/gbm.doxy_text| 15 ++ src/mesa/drivers/dri/i965/i965.doxy_text | 176 + src/mesa/main/main.doxy_text | 257 +++ src/mesa/program/program.doxy_text |

[Mesa-dev] [PATCH 2/3] remove main page tags from source files

2013-10-07 Thread Kevin Rogovin
--- src/gbm/main/gbm.h | 10 +- src/mapi/glapi/glapi.h | 17 + src/mesa/main/context.c | 45 - src/mesa/program/program.h | 8 +--- src/mesa/swrast/s_context.h | 10 +- src/mesa/tnl/t_context.h|

[Mesa-dev] [PATCH 3/3] doxy-text files added

2013-10-07 Thread Kevin Rogovin
--- doxygen/all.doxy | 1 + src/gbm/gbm.doxy_text| 15 ++ src/mesa/drivers/dri/i965/i965.doxy_text | 176 + src/mesa/main/main.doxy_text | 257 +++ src/mesa/program/program.doxy_text |

[Mesa-dev] [PATCH 2/3] remove main page tags from source files

2013-10-07 Thread Kevin Rogovin
--- src/gbm/main/gbm.h | 10 +- src/mapi/glapi/glapi.h | 17 + src/mesa/main/context.c | 45 - src/mesa/program/program.h | 8 +--- src/mesa/swrast/s_context.h | 10 +- src/mesa/tnl/t_context.h|

Re: [Mesa-dev] [PATCH v2] i965: Initialize brw_blorp_const_color_program::prog_data.

2013-10-07 Thread Paul Berry
On 27 September 2013 22:24, Vinson Lee wrote: > Fixes "Uninitialized scalar field" defect reported by Coverity. > > Signed-off-by: Vinson Lee > --- > src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Paul Berry > > diff --git a/src/mesa/d

[Mesa-dev] [Bug 70264] New: EGL pkg-config does not provide correct cflags

2013-10-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70264 Priority: medium Bug ID: 70264 Assignee: mesa-dev@lists.freedesktop.org Summary: EGL pkg-config does not provide correct cflags Severity: minor Classification: Unclassified O

[Mesa-dev] [PATCH 7/7] i965/blorp: Allow format conversions.

2013-10-07 Thread Kenneth Graunke
BLORP performs blits by drawing a rectangle with a shader that samples from the source texture, and writes color data to the destination. The sampler always returns 32-bit RGBA float data, regardless of the source format's component ordering or data type. Likewise, the render target write message

[Mesa-dev] [PATCH 6/7] i965/blorp: Rework sRGB override behavior.

2013-10-07 Thread Kenneth Graunke
The previous code for sRGB overrides assumes that the source and destination formats are equal, other than the color space. This won't be feasible when we add support for format conversions. Here are a few cases, and how the old code handled them: 1. RGB8 -> SRGB8, MSAA ==> SRGB8 -> SRGB8

[Mesa-dev] [PATCH 5/7] i965/blorp: Explain why Z24 can't use a sensible format.

2013-10-07 Thread Kenneth Graunke
We could conceivably use BRW_SURFACEFORMAT_R24_UNORM_X8_TYPELESS for Z24 source images, allowing conversions from Z24 to either Z16 or Z32F. Unfortunately, we can't use it for destination images since it isn't supported as a render target. Using different formats for sources or destinations would

[Mesa-dev] [PATCH 4/7] i965/blorp: Use R16_UNORM for Z32F surfaces.

2013-10-07 Thread Kenneth Graunke
Currently, all that matters is that we copy the correct number of bits, so any format that has 32-bits of data will work fine. Once BLORP begins handling format conversions, the sampler will need to correctly interpret the data. We don't need a depth format, but we do need the right number of com

[Mesa-dev] [PATCH 3/7] i965/blorp: Use R16_UNORM for Z16 surfaces.

2013-10-07 Thread Kenneth Graunke
Currently, all that matters is that we copy the correct number of bits, so any format that has 16-bits of data will work fine. Once BLORP begins handling format conversions, the sampler will need to correctly interpret the data. We don't need a depth format, but we do need the right number of com

[Mesa-dev] [PATCH 2/7] i965/blorp: Add support for non-render-target formats.

2013-10-07 Thread Kenneth Graunke
Once blorp gains the ability to do format conversions, it's conceivable that the source format may be texturable but not supported as a render target. This would break Paul's code, which assumes that it can use the render_target_format array even for the source format. There are three ways to con

[Mesa-dev] [PATCH 1/7] i965/blorp: Add an is_render_target parameter to surface_info::set.

2013-10-07 Thread Kenneth Graunke
This allows us to determine whether we're setting up a format for the source (as a texture) or destination (as a render target). Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_blorp.cpp | 3 ++- src/mesa/drivers/dri/i965/brw_blorp.h | 3 ++- src/mesa/drivers/dri/i

[Mesa-dev] [PATCH 0/7] i965: BLORP with format conversions

2013-10-07 Thread Kenneth Graunke
This series introduces support for blitting and CopyTexSubImage with format conversions via the BLORP engine. Previously, we fell back to the meta paths, which fell back to unpack/pack code, which was pretty dire for performance. In particular, this series makes Legends of Aethereus (an RPG that

Re: [Mesa-dev] [PATCH 1/3] gallium/radeon: don't export any private symbols

2013-10-07 Thread Marek Olšák
FYI, I have just realized VISIBILITY_CFLAGS cannot be applied to libdricore, because it needs to export everything. (it's a shared core Mesa library) Marek On Mon, Oct 7, 2013 at 4:27 PM, Emil Velikov wrote: > On 07/10/13 14:21, Tom Stellard wrote: >> On Mon, Oct 07, 2013 at 01:52:35PM +0200, Ma

[Mesa-dev] [PATCH 2/7] gallium/dri2: Set winsys_handle type to KMS for stride query.

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers Otherwise the default is TYPE_SHARED, which will flink the bo. This seems rather unnecessary for a simple stride query. --- src/gallium/state_trackers/dri/drm/dri2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c

[Mesa-dev] [PATCH 7/7] gallium/radeon: Implement hooks for DRI Image 7

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 107 -- 1 file changed, 83 insertions(+), 24 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c index 5ddbc00..9

[Mesa-dev] [PATCH 5/7] ilo: Support DRI Image 7

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/winsys/intel/drm/intel_drm_winsys.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/winsys/intel/drm/intel_drm_winsys.c b/src/gallium/winsys/intel/drm/intel_drm_winsys.c index 521762d..d7ec919 100644 --- a/src/gallium/winsys/

[Mesa-dev] [PATCH 4/7] nouveau: Support DRI Image 7 extension

2013-10-07 Thread christopher . halse . rogers
From: Maarten Lankhorst --- src/gallium/drivers/nouveau/nouveau_screen.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c index e453556..94d1927 100644 --- a/src/gallium/dr

[Mesa-dev] [PATCH 1/7] gallium/winsys/drm: Prepare for passing prime fds in winsys_handle

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers --- src/gallium/drivers/freedreno/freedreno_screen.c | 5 + src/gallium/drivers/nouveau/nouveau_screen.c | 6 ++ src/gallium/include/state_tracker/drm_driver.h| 9 ++--- src/gallium/state_trackers/dri/drm/dri2.c |

[Mesa-dev] [PATCH] DRI Image v7 support for gallium drivers

2013-10-07 Thread christopher . halse . rogers
This is a prerequisite for the Mir EGL platform, which I'm sure everyone is excited about. It's also necessary for Wayland hybrid graphics support. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/me

[Mesa-dev] [PATCH 6/7] radeon: Rename bo_handles hashtable to match its actual contents.

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers It's a map of GEM name->bo, so identify it as such --- src/gallium/winsys/radeon/drm/radeon_drm_bo.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeo

[Mesa-dev] [PATCH 3/7] gallium/dri: Support* DRI Image extension version 7

2013-10-07 Thread christopher . halse . rogers
From: Christopher James Halse Rogers *ish --- src/gallium/state_trackers/dri/drm/dri2.c | 118 +++--- 1 file changed, 108 insertions(+), 10 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index b4f1818..a6a

Re: [Mesa-dev] [PATCH] i965/blorp: Fix the register types on blorp's push constants.

2013-10-07 Thread Paul Berry
On 21 September 2013 16:59, Eric Anholt wrote: > The UD values were getting set up as floats. This happened to work out > because they were used as the second argument where the first was a dword, > and gen6+ doesn't do source conversions. But it did trigger fulsim > warnings, and it meant if y

Re: [Mesa-dev] [PATCH] egl/main: remove undefined X11_LIBS automake variable

2013-10-07 Thread Kenneth Graunke
On 10/01/2013 02:07 PM, Kenneth Graunke wrote: > On 10/01/2013 06:31 AM, Gaetan Nadon wrote: >> On 13-09-28 04:23 PM, Emil Velikov wrote: >>> On 28/09/13 20:00, Gaetan Nadon wrote: The EGL library has some references to x11 but it gets the link flags from the XCB_DRI2_LIBS iff HAVE_EGL_PL

Re: [Mesa-dev] [PATCH 7/7] automake: properly handle non-default expat installation

2013-10-07 Thread Emil Velikov
On 07/10/13 16:48, Tom Stellard wrote: > On Sat, Sep 28, 2013 at 03:46:21PM +0100, Emil Velikov wrote: >> Use PKG_CHECK_MODULE over requesting the user to setup the >> option at configure time. Drop unused EXPAT_INCLUDE and add >> EXPAT_CFLAGS to all classic/dri and gallium/dri targets. >> >> Signe

[Mesa-dev] [PATCH 07/10] i965: Don't copy prop source mods into instructions that can't take them.

2013-10-07 Thread Matt Turner
v2: Don't create new function in backend_instruction. Cc: Paul Berry --- src/mesa/drivers/dri/i965/brw_fs.cpp | 15 ++- src/mesa/drivers/dri/i965/brw_vec4.cpp | 15 ++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp

Re: [Mesa-dev] [PATCH 0/6] Support for 10 bpc EGLSurface

2013-10-07 Thread Chad Versace
On 09/15/2013 12:16 AM, Kristian Høgsberg wrote: Hi, This little series adds support for creating EGLSurfaces with color buffers using the ARGB2101010 pixel format. We the new KMS addFB2 ioctl we can create KMS framebuffers with that format and this series ends up adding the pixel format to gbm

Re: [Mesa-dev] [PATCH] glapi: add output info to GetProgramiv's params

2013-10-07 Thread Eric Anholt
Emilio Pozuelo Monfort writes: > Signed-off-by: Emilio Pozuelo Monfort Pushed. Thanks! pgp4Qu7jnNrIK.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 7/7] automake: properly handle non-default expat installation

2013-10-07 Thread Tom Stellard
On Sat, Sep 28, 2013 at 03:46:21PM +0100, Emil Velikov wrote: > Use PKG_CHECK_MODULE over requesting the user to setup the > option at configure time. Drop unused EXPAT_INCLUDE and add > EXPAT_CFLAGS to all classic/dri and gallium/dri targets. > > Signed-off-by: Emil Velikov > --- > configure.ac

Re: [Mesa-dev] [PATCH 4/7] gallium/targets/xorg: drop set but unused variable entity

2013-10-07 Thread Tom Stellard
On Sat, Sep 28, 2013 at 03:46:18PM +0100, Emil Velikov wrote: > The function xf86GetEntityInfo() retrieves the entity rather than > doing any changes. Remove this no-op code. > > Signed-off-by: Emil Velikov Reviewed-by: Tom Stellard > --- > src/gallium/targets/r600/xorg/xorg.c| 3 --

Re: [Mesa-dev] [PATCH] clover: fix building with llvm-3.4 since rev191922

2013-10-07 Thread Tom Stellard
On Fri, Oct 04, 2013 at 09:22:30PM +0200, Laurent Carlier wrote: > http://llvm.org/viewvc/llvm-project?view=revision&revision=191922 Pushed, thanks! > --- > src/gallium/state_trackers/clover/llvm/invocation.cpp | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/g

Re: [Mesa-dev] [PATCH 2/3] gallium/dri targets: use DRI_DRIVER_LDFLAGS

2013-10-07 Thread Emil Velikov
On 07/10/13 12:05, Marek Olšák wrote: > From: Marek Olšák > > which contains -Wl,-Bsymbolic. If I understand it correctly, it prevents > symbols from clashing if multiple drivers are loaded at the same time. A small side note, This and the original commit handling the classic dri drivers, cause

Re: [Mesa-dev] [PATCH 1/3] gallium/radeon: don't export any private symbols

2013-10-07 Thread Emil Velikov
On 07/10/13 14:21, Tom Stellard wrote: > On Mon, Oct 07, 2013 at 01:52:35PM +0200, Marek Olšák wrote: >> From: Marek Olšák >> >> I wonder why we don't just append the flags in configure.ac. They have to be >> used everywhere anyway. > > I'm not sure why either, but you could add this variable to

Re: [Mesa-dev] [PATCH 3/3] configure.ac: report an error if LLVM shared libs are disabled and CL is enabled

2013-10-07 Thread Tom Stellard
On Mon, Oct 07, 2013 at 01:05:15PM +0200, Marek Olšák wrote: > From: Marek Olšák > Reviewed-by: Tom Stellard > --- > configure.ac | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 559c9a3..6158c6e 100644 > --- a/configure.ac > +

Re: [Mesa-dev] [PATCH 1/3] gallium/radeon: don't export any private symbols

2013-10-07 Thread Tom Stellard
On Mon, Oct 07, 2013 at 01:52:35PM +0200, Marek Olšák wrote: > From: Marek Olšák > > I wonder why we don't just append the flags in configure.ac. They have to be > used everywhere anyway. I'm not sure why either, but you could add this variable to src/gallium/Automake.inc if you want to. Either

[Mesa-dev] [PATCH 3/3] st/dri: don't export any private symbols

2013-10-07 Thread Marek Olšák
From: Marek Olšák I wonder why we don't just append the flags in configure.ac. They have to be used everywhere anyway. --- src/gallium/state_trackers/dri/drm/Makefile.am | 3 ++- src/gallium/state_trackers/dri/sw/Makefile.am | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/s

[Mesa-dev] [PATCH 2/3] gallium/swrast: don't export any private symbols

2013-10-07 Thread Marek Olšák
From: Marek Olšák I wonder why we don't just append the flags in configure.ac. They have to be used everywhere anyway. --- src/gallium/drivers/llvmpipe/Makefile.am | 3 ++- src/gallium/drivers/softpipe/Makefile.am | 3 ++- src/gallium/targets/dri-swrast/Makefile.am | 3 ++- src/gallium/winsy

[Mesa-dev] [PATCH 1/3] gallium/radeon: don't export any private symbols

2013-10-07 Thread Marek Olšák
From: Marek Olšák I wonder why we don't just append the flags in configure.ac. They have to be used everywhere anyway. --- src/gallium/drivers/r600/Makefile.am | 3 ++- src/gallium/drivers/radeon/Makefile.am | 8 +--- src/gallium/drivers/radeonsi/Makefile.am | 4 +++-

[Mesa-dev] [PATCH 3/3] configure.ac: report an error if LLVM shared libs are disabled and CL is enabled

2013-10-07 Thread Marek Olšák
From: Marek Olšák --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 559c9a3..6158c6e 100644 --- a/configure.ac +++ b/configure.ac @@ -1532,8 +1532,9 @@ AC_ARG_WITH([llvm-shared-libs], [with_llvm_shared_libs=no]) AS_I

[Mesa-dev] [PATCH 1/3] configure.ac: add -no-undefined to classic drivers

2013-10-07 Thread Marek Olšák
From: Marek Olšák Undefined symbol references should cause a linker error. All gallium drivers use this. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9546163..559c9a3 100644 --- a/configure.ac +++ b/configure.ac @@ -1033,7

[Mesa-dev] [PATCH 2/3] gallium/dri targets: use DRI_DRIVER_LDFLAGS

2013-10-07 Thread Marek Olšák
From: Marek Olšák which contains -Wl,-Bsymbolic. If I understand it correctly, it prevents symbols from clashing if multiple drivers are loaded at the same time. --- src/gallium/targets/dri-freedreno/Makefile.am | 2 +- src/gallium/targets/dri-i915/Makefile.am | 2 +- src/gallium/targets/dr

[Mesa-dev] [Bug 70123] Freeze caused by 'winsys/radeon: remove cs_queue_empty' commit

2013-10-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70123 Christian König changed: What|Removed |Added Status|NEW |ASSIGNED -- You are receiving this ma

[Mesa-dev] [Bug 70123] Freeze caused by 'winsys/radeon: remove cs_queue_empty' commit

2013-10-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=70123 --- Comment #2 from Christian König --- Created attachment 87229 --> https://bugs.freedesktop.org/attachment.cgi?id=87229&action=edit Possible fix Please try the attached patch, it might fix your issue. -- You are receiving this mail because

Re: [Mesa-dev] [PATCH 1/2] radeon/uvd, st/vdpau: fix video format reporting

2013-10-07 Thread Christian König
Yes, but this is a separate issue I think. We fail safely, and it doesn't matter for the common path when only PutBits is used. That said it shouldn't be too hard to convert between YV12 and NV12 or YUYV and UYVY. The chroma type is fixed for a given VdpVideoSurface so it doesn't make sense to

Re: [Mesa-dev] [PATCH 2/2] st/vl: use MPEG-2 chroma cositing

2013-10-07 Thread Christian König
Am 01.10.2013 21:06, schrieb Grigori Goronzy: MPEG-2 and later video standards align the chroma sample position horizontally with the leftmost luma sample position. Add a half-texel offset to the chroma texture sampling coordinate to sample at the this position instead of sampling in the center b

Re: [Mesa-dev] [PATCH 1/2] radeon/uvd, st/vdpau: fix video format reporting

2013-10-07 Thread Grigori Goronzy
On 07.10.2013 11:25, Christian König wrote: Am 01.10.2013 21:12, schrieb Ilia Mirkin: On Tue, Oct 1, 2013 at 3:06 PM, Grigori Goronzy wrote: UVD can only support NV12 in the case of hardware decoding, but we can still use all other formats for software decoding. Use the UNKNOWN entrypoint to s

Re: [Mesa-dev] [PATCH 1/2] radeon/uvd, st/vdpau: fix video format reporting

2013-10-07 Thread Christian König
Am 01.10.2013 21:12, schrieb Ilia Mirkin: On Tue, Oct 1, 2013 at 3:06 PM, Grigori Goronzy wrote: UVD can only support NV12 in the case of hardware decoding, but we can still use all other formats for software decoding. Use the UNKNOWN entrypoint to signal that we're not interesting in hardware

Re: [Mesa-dev] [PATCH 2/5] winsys/radeon: remove cs_queue_empty

2013-10-07 Thread Christian König
radeon_drm_cs_sync_flush doesn't seems to be save when it's called from multiple threads but thought that this might be intentional. Maybe we are running into that issue now that we are calling it more often. Changing that should be trivial, going to attach a possible fix to the bugreport in a