[Mesa-dev] [PATCH] mesa/st: get interpolation mode from the fragment shader.

2011-10-28 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com With the recent changes to interpolation stuff, we can now get the value direct from the program instead of just being fail. fixes some of the glsl-1.30 interpolation tests with softpipe Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa

[Mesa-dev] [PATCH] radeon/r200: drop remains of r300/r600 support along with old drm 1.x kernel

2011-10-29 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This drops all the old drmSupports* checks since KMS does them all, and it also drop R300_CLASS and R600_CLASS. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/drivers/dri/r200/r200_context.c | 32 +--- src/mesa/drivers/dri/r200

Re: [Mesa-dev] gallium scaled types

2011-11-01 Thread Dave Airlie
After wasting so much time on this topic, and conceding on most points, I'm disappointed that the new pure integers formats were added without support for converting to/from floats (my 2nd request above) which ended up causing obscures bugs in llvmpipe (my 1st request). I regret having

Re: [Mesa-dev] gallium scaled types

2011-11-01 Thread Dave Airlie
On Tue, Nov 1, 2011 at 2:11 PM, Dave Airlie airl...@gmail.com wrote: After wasting so much time on this topic, and conceding on most points, I'm disappointed that the new pure integers formats were added without support for converting to/from floats (my 2nd request above) which ended up

[Mesa-dev] [PATCH] radeon: fix some regressions in texturing code.

2011-11-02 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com On a piglit run vs 7.11 this fixes 23 tests. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/drivers/dri/radeon/radeon_span.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/dri/radeon

[Mesa-dev] [PATCH] t_vertex: fix mipmap generation on rv100 swtcl.

2011-11-04 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com the meta mipmap generator on rv100 is passing a s,t,r coordinate, but r100 is ancient so has no r handling in hw, so we have to pass a s,t,q with q set to 1. /me dares someone to review this :) Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/tnl

[Mesa-dev] [PATCH 2/2] llvmpipe: enable RGTC after u_format fix.

2011-11-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com The two piglit tests pass + render correctly. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/drivers/llvmpipe/lp_screen.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b

[Mesa-dev] [PATCH 1/2] u_format: fix RGTC support in fits 8unorm.

2011-11-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Signed RGTC won't fit in a unorm, so don't allow them. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/util/u_format.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util

[Mesa-dev] [PATCH] llvmpipe: fix typo in the depth sampling aos code.

2011-11-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Just found by reading llvmpipe code for no great reason. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/gallivm/lp_bld_sample_aos.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary

[Mesa-dev] [PATCH] llvmpipe: add NV_conditional_render support.

2011-11-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This ports the softpipe NV_conditional_render support to llvmpipe. This passes the nv_conditional_render-* piglit tests. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/drivers/llvmpipe/lp_clear.c |3 +++ src/gallium/drivers/llvmpipe

[Mesa-dev] [PATCH] llvmpipe/u_format: add support for EXT_texture_shared_exponent + EXT_packed_float

2011-11-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com These two are fairly unique types so add specific cases for decoding them. Passes piglit fbo-clear-format and fbo-generatemipmap-format tests for these two extensions. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/util

Re: [Mesa-dev] [PATCH 13/17] swrast: Drop the global mapping of buffers across glReadPixels().

2011-11-10 Thread Dave Airlie
On Tue, Nov 1, 2011 at 11:17 PM, Eric Anholt e...@anholt.net wrote: Reviewed-by: Brian Paul bri...@vmware.com Just as an aside and maybe some way to help me figure out why this break piglit windowoverlap test on r100, specifically the sub window drawing stops working. I bisected to this and

Re: [Mesa-dev] [PATCH 10/17] swrast: Convert color glReadPixels slow path to using MapRenderbuffer.

2011-11-10 Thread Dave Airlie
This may be a bit slower than before because we're switching from per-format compiled loops in GetRow to _mesa_unpack_rgba_block_unpack's loop around a callback to unpack a pixel.  The solution there would be to make _mesa_unpack_rgba_block fold the span loop into the format handlers. This

Re: [Mesa-dev] [PATCH 1/4] mesa: Include R/RG integer textures in _mesa_is_integer_format.

2011-11-11 Thread Dave Airlie
On Fri, Nov 11, 2011 at 6:57 PM, Eric Anholt e...@anholt.net wrote: Fixes some spurious GL errors in the upcoming gl-3.0-required-sized-formats piglit test. Reviewed-by: Dave Airlie airl...@redhat.com ---  src/mesa/main/image.c |   12  1 files changed, 12 insertions(+), 0

Re: [Mesa-dev] TGSI declarations missing type info

2011-11-14 Thread Dave Airlie
Having type info in TGSI registers is useless for llvm/llvmpipe, spite what initial appearances may be. Imagine indirect addressing on this hypothetical world with typed TGSI declarations:  DCL_float TEMP[0]  DCL_int   TEMP[1]  DCL_float TEMP[2]  DCL_int   TEMP[3]  DCL_float TEMP[4]

Re: [Mesa-dev] mesademos build system: would one be enough?

2011-11-21 Thread Dave Airlie
On Mon, Nov 21, 2011 at 11:17 AM, Jose Fonseca jfons...@vmware.com wrote: Johannes Obermayr's recent patch series remind me of one thing I've been planning to ask here for quite some time: Would anybody oppose dropping automake build system in mesademos for just cmake ? On Mesa there is

[Mesa-dev] [PATCH] glsl: fix linker error message context for frag shader output.

2011-11-22 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com A later error prints this properly, fix this case to do the same. Signed-off-by: Dave Airlie airl...@redhat.com --- src/glsl/linker.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp

Re: [Mesa-dev] [PATCH 2/2] mesa: add hard limits for the number of varyings and uniforms for the linker

2011-11-24 Thread Dave Airlie
By this same logic, malloc should never return NULL because most apps can't handle it.  Instead it should mmap /dev/null and return a pointer to that.  That analogy isn't as far off as it may seem:  in both cases the underlying infrastructure has lied to the application that an operation

Re: [Mesa-dev] [PATCH 2/2] mesa: add hard limits for the number of varyings and uniforms for the linker

2011-11-25 Thread Dave Airlie
I'm honestly shocked to read this, Marek.  We deliberately want [your] driver to be less capable and couldn't care about less about anything except [our] driver?  This is sounding remarkably like a conspiracy theory, and I really didn't expect that from you. I think it takes two to tango, and

[Mesa-dev] [PATCH] image: fix legal types for packed integer formats.

2011-11-26 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com After reading ARB_texture_rgb10_a2ui it appears the packed formats for integer types are only specified via this extension, and not via the original ones. So condition the checks on this. Hopefully some can take a quick read of that spec and confirm I'm doing

[Mesa-dev] [PATCH] image/pack: fix missing GL_BGR(A)_INTEGER support.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com These codepaths were missing the cases for BGR_INTEGER/BGRA_INTEGER. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/image.c |2 ++ src/mesa/main/pack.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/mesa

[Mesa-dev] [PATCH] initial ARB_texture_rgb10_a2ui test (v2)

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This test tries to upload the texture in RGBA/BGRA and 10_10_10_2/2_10_10_10_REV type/format combinations. v2: improve test to be less cut-n-paste from older tests and make it a lot easier to read. v2 passes on nvidia binary (joi on #nouveau tested it for me

Re: [Mesa-dev] [PATCH] initial ARB_texture_rgb10_a2ui test (v2)

2011-11-27 Thread Dave Airlie
This test tries to upload the texture in RGBA/BGRA and 10_10_10_2/2_10_10_10_REV type/format combinations. Oops wrong mail sending script, re-sent to piglit list. Sorry for the noise. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH 1/3] mesa/formats: add mesa MESA_FORMAT_ARGB2101010_UINT description.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This format is used in the ARB_texture_rgb10_a2ui spec. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/formats.c | 17 + src/mesa/main/formats.h |2 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src

[Mesa-dev] GL_ARB_texture_rgb10_a2ui support

2011-11-27 Thread Dave Airlie
The first 2 add the core rgb10_a2ui format, and the 3rd is the gallium state tracker support. I've got a one liner fix for r600g and I'll push a docs update along with these. I've tested them with the test that I posted earlier on softpipe + r600g. They also require the image fix I sent for

[Mesa-dev] [PATCH 3/3] st/mesa: add ARB_texture_rgb10_a2ui support

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Add support to the state tracker format and extension enablement code. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_extensions.c |6 ++ src/mesa/state_tracker/st_format.c | 11 +-- 2 files changed, 15

[Mesa-dev] [PATCH 2/3] mesa: add texformat/store code for GL_RGB10_A2UI.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds the texstorage and format handling for ARB_texture_rgb10_a2ui Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/image.c |2 + src/mesa/main/texformat.c |9 +++ src/mesa/main/teximage.c |1 + src/mesa/main

[Mesa-dev] [PATCH] format_unpack: add ARGB2101010 unpacking.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds the unpacking necessary for an fbo using readpixels. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/format_unpack.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/mesa/main

Re: [Mesa-dev] GL_ARB_texture_rgb10_a2ui support

2011-11-27 Thread Dave Airlie
Just realised its on the required framebuffer format as well, so I'll have to write an FBO test for it and make sure it works. That was easier than I expected, test + patch for mesa sent. Dave. ___ mesa-dev mailing list

[Mesa-dev] [PATCH] format_unpack: add 8/16 rgba/rgb types.

2011-11-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com fixing these makes piglit fbo-integer pass on softpipe. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/format_unpack.c | 135 + 1 files changed, 135 insertions(+), 0 deletions(-) diff --git a/src

Re: [Mesa-dev] GL 3.0 glDrawPixels(integer format)

2011-11-28 Thread Dave Airlie
While looking into MapRenderbuffer for glDrawPixels, I ended up looking at integer again.  It looks like GL 3.0 has added sanity to drawpixels for integer, which is to say that they've disallowed it. Well I suppose the usual plan, test on binary drivers, though I expect it works on nvidia,

Re: [Mesa-dev] [PATCH 1/3] mesa/formats: add mesa MESA_FORMAT_ARGB2101010_UINT description.

2011-11-28 Thread Dave Airlie
On Sun, Nov 27, 2011 at 10:42 PM, Eric Anholt e...@anholt.net wrote: On Sun, 27 Nov 2011 19:27:15 +, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This format is used in the ARB_texture_rgb10_a2ui spec. Signed-off-by: Dave Airlie airl...@redhat.com ---  src

[Mesa-dev] [PATCH] st/mesa: only resolve is number of samples is 1

2011-11-30 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fixes the firefox crash but I've no idea if its correct. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_cb_blit.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_blit.c

[Mesa-dev] [PATCH] mesa: add missing RG_INTEGER and some RED_INTEGER_EXT checks.

2011-12-04 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just adds the correct checks and asserts in the right places. This doesn't fix all the tests that I've sent to piglit, need to add int paths to go alongside the uint paths that don't go via float to fix it up properly. I'm not sure how much

[Mesa-dev] DRI2 pixmap swapping

2011-12-06 Thread Dave Airlie
an oversight? if so trivial patch is attached. Dave. From 845c00ae2370c55f02c248ece8645438414606ce Mon Sep 17 00:00:00 2001 From: Dave Airlie airl...@redhat.com Date: Tue, 6 Dec 2011 16:41:57 + Subject: [PATCH] dri2: don't attempt to swap pixmaps Signed-off-by: Dave Airlie airl...@redhat.com --- hw

Re: [Mesa-dev] DRI2 pixmap swapping

2011-12-07 Thread Dave Airlie
2011/12/7 Michel Dänzer mic...@daenzer.net: On Mit, 2011-12-07 at 08:40 +, Dave Airlie wrote: I have a feeling, since dri2 is not strictly restricted to GLX, whether this should really be implemented in the glx code before calling into dri2? Otoh that would mean the server side

Re: [Mesa-dev] DRI2 pixmap swapping

2011-12-07 Thread Dave Airlie
2011/12/7 Michel Dänzer mic...@daenzer.net: On Mit, 2011-12-07 at 09:20 +, Dave Airlie wrote: 2011/12/7 Michel Dänzer mic...@daenzer.net: On Mit, 2011-12-07 at 08:40 +, Dave Airlie wrote: I have a feeling, since dri2 is not strictly restricted to GLX, whether this should

Re: [Mesa-dev] DRI2 pixmap swapping

2011-12-07 Thread Dave Airlie
Indeed, but fixing it without invasive protocol work may be messy, but I'm not really a GLX or DRI2 expert and its hard to fathom the intentions of DRI2 original authors wrt this GLX case. Also client side fixing is not in any way going to help broken clients that exist in the field now. i.e.

[Mesa-dev] [PATCH] glx: block attempt to swapbuffer on pixmap.

2011-12-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This keeps track of the creation process and stores a drawable type, it then blocks DRI2 from getting called if the drawable is a pixmap. Suggested by Michel Dänzer mic...@daenzer.net Signed-off-by: Dave Airlie airl...@redhat.com --- src/glx/glx_pbuffer.c

[Mesa-dev] [PATCH] glx: block attempt to swapbuffer on pixmap. (v2)

2011-12-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This keeps track of the creation process and stores a drawable type, it then blocks DRI2 from getting called if the drawable is a pixmap. v2: check if we have a GLX drawable, which means we aren't a pbuffer, avoid doing flush at all since its meant

[Mesa-dev] [PATCH] glsl_to_tgsi: make sure copied instructions don't lose texture target.

2011-12-10 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com The piglit draw-pixel-with-texture was asserting in the glsl-tgsi code, due to 0 texture target, this makes sure the texture target is copied over correctly when we copy instructions around. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa

Re: [Mesa-dev] [PATCH] glsl_to_tgsi: make sure copied instructions don't lose texture target.

2011-12-10 Thread Dave Airlie
On Sat, Dec 10, 2011 at 6:34 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com The piglit draw-pixel-with-texture was asserting in the glsl-tgsi code, due to 0 texture target, this makes sure the texture target is copied over correctly when we copy instructions

Re: [Mesa-dev] [PATCH] glsl_to_tgsi: make sure copied instructions don't lose texture target.

2011-12-10 Thread Dave Airlie
The piglit draw-pixel-with-texture was asserting in the glsl-tgsi code, due to 0 texture target, this makes sure the texture target is copied over correctly when we copy instructions around. Oh so it looks like this could be fun or maybe the other one, so glsl-tgsi is broken for draw pixels

[Mesa-dev] [PATCH 1/2] softpipe: fix texture sampling from 1D texture array

2011-12-18 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is the first part of a fix to piglit glsl-fs-shadow1DArray Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/gallium

[Mesa-dev] [PATCH 2/2] softpipe: fix depth sampling for linear vs nearest.

2011-12-18 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This sample compare was always doing linear, and this makes the glsl-fs-shadow1DArray test render like the Intel driver. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/drivers/softpipe/sp_tex_sample.c | 23 --- 1 files

Re: [Mesa-dev] [PATCH 2/2] softpipe: fix depth sampling for linear vs nearest.

2011-12-18 Thread Dave Airlie
On Sun, Dec 18, 2011 at 9:27 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This sample compare was always doing linear, and this makes the glsl-fs-shadow1DArray test render like the Intel driver. Signed-off-by: Dave Airlie airl...@redhat.com ---  src/gallium

Re: [Mesa-dev] [PATCH] glx: block attempt to swapbuffer on pixmap. (v2)

2011-12-19 Thread Dave Airlie
On Wed, Dec 7, 2011 at 6:32 PM, Eric Anholt e...@anholt.net wrote: On Wed,  7 Dec 2011 10:24:09 +, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This keeps track of the creation process and stores a drawable type, it then blocks DRI2 from getting called

[Mesa-dev] [PATCH 1/2] softpipe: fix shadow 2d texture array sampling

2011-12-19 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com The 4th texcoord is used in this case for the comparison. This fixes piglit glsl-fs-shadow2DArray* on softpipe. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 11 ++- src/gallium/drivers/softpipe

[Mesa-dev] [PATCH 2/2] softpipe: fix shadow1d tests.

2011-12-19 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fixes the piglit glsl-1.10 shadow1D related tests. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/tgsi

[Mesa-dev] [PATCH 2/2] gallium/draw: fix two side handling

2011-12-19 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com The previous fix linked the vertex/fragment shader handling in softpipe for the unspecified front color output case, but specified back color case. However in that case we were doing a copy from back to non-existant front, this code checks we have existant

[Mesa-dev] softpipe two sided fixes

2011-12-19 Thread Dave Airlie
These two patches fix 13 piglit tests in softpipe, GL2 vertex-program-two-side and glsl-1.10 interpolation tests. I'm not 100% sure that my fixes are the correct way to fix the problem, but I'd probably need some direction if someone knows better, I'm not entirely happy that the fix is in two

[Mesa-dev] [PATCH 1/2] softpipe: try and use back color for a slot if color fails.

2011-12-19 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com In the case where a front and back output are specified, the draw code will copy the back output into the front color slot and everything is happy. However if no front is specified then the draw code will do a bad copy (separate patch), but also the frag

[Mesa-dev] [PATCH] tgsi: update documents with some info on texture lookup

2011-12-19 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this mentions which channels are used for slice and depth comparison values. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/docs/source/tgsi.rst | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/gallium

Re: [Mesa-dev] [PATCH 2/2] softpipe: fix shadow1d tests.

2011-12-19 Thread Dave Airlie
That looks better.  Would you mind checking that the TGSI docs properly describe which coordinate components are used for array indexing, shadow distance, etc. I've sent a tgsi doc update, not really sure how we plan on handling, float texture (samplerCubeShadow sampler, vec4 P [, float

[Mesa-dev] softpipe color interpolation

2011-12-19 Thread Dave Airlie
Hi guys, So we have some piglit tests generated_tests/spec/glsl-1.10/execution/interpolation/interpolation-none-gl_FrontColor-smooth-none.shader_test that piglit fails This seems to be due to its linear interpolation not producing the correct answers compared to the hardware, on the rendered

Re: [Mesa-dev] [PATCH 1/2] softpipe: try and use back color for a slot if color fails.

2011-12-19 Thread Dave Airlie
On Mon, Dec 19, 2011 at 5:39 PM, Brian Paul bri...@vmware.com wrote: On 12/19/2011 09:29 AM, Dave Airlie wrote: From: Dave Airlieairl...@redhat.com In the case where a front and back output are specified, the draw code will copy the back output into the front color slot and everything

Re: [Mesa-dev] [PATCH 1/2] softpipe: try and use back color for a slot if color fails.

2011-12-19 Thread Dave Airlie
On Mon, Dec 19, 2011 at 5:49 PM, Dave Airlie airl...@gmail.com wrote: On Mon, Dec 19, 2011 at 5:39 PM, Brian Paul bri...@vmware.com wrote: On 12/19/2011 09:29 AM, Dave Airlie wrote: From: Dave Airlieairl...@redhat.com In the case where a front and back output are specified, the draw code

[Mesa-dev] [PATCH] gallium/u_pack: fix l8/i8 pack color ub

2011-12-24 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com just noticed this in passing, not sure it actually fixes any issus. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/util/u_pack_color.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary

[Mesa-dev] llvmpipe vs fbo-alphatest-formats

2011-12-29 Thread Dave Airlie
Hi guys, was doing some piglit comparisons between softpipe and llvmpipe and noticed the fbo-alphatest-formats test fails on llvmpipe for all the I8 formats. Now I looked at the code generated for lp_tile_soa.c:lp_tile_i8_unorm_unswizzle_4ub and it references a[i+0] and a[i+1], if I change it to

Re: [Mesa-dev] llvmpipe vs fbo-alphatest-formats

2011-12-30 Thread Dave Airlie
this fixes it here, and even seems reasonable to me. Dave. From dc39b83df68e5128bfb585f9f9b5be6c9f5114ff Mon Sep 17 00:00:00 2001 From: Dave Airlie airl...@gmail.com Date: Fri, 30 Dec 2011 10:52:16 + Subject: [PATCH] u_format: fix inv_swizzles generation inv_swizzles is used in lp_tile_soa.py

Re: [Mesa-dev] llvmpipe vs fbo-alphatest-formats

2011-12-30 Thread Dave Airlie
Okay this fixes it here, and even seems reasonable to me. Yes. Great catch Dave. This should also fix to L8 rendering.  But I belive that in the commit message, you mean i8 and not l8. Please add a comment about why order matters in the inv_swizzle() function, for future reference.

Re: [Mesa-dev] llvmpipe vs fbo-alphatest-formats

2011-12-30 Thread Dave Airlie
seems sufficient to fix the fbo-blending-formats test in all its variants on llvmpipe. Dave. From d64bdea85e8d58a3cb6ac24a9d648e6e84c1a631 Mon Sep 17 00:00:00 2001 From: Dave Airlie airl...@gmail.com Date: Fri, 30 Dec 2011 20:10:26 + Subject: [PATCH] llvmpipe: fix blending for intensity

Re: [Mesa-dev] [PATCH 2/4] mesa: simplify Driver.TexImage() parameters

2011-12-30 Thread Dave Airlie
On Mon, Dec 26, 2011 at 11:09 PM, Brian Paul brian.e.p...@gmail.com wrote: From: Brian Paul bri...@vmware.com As with TexSubImage(), the target, level and texObj values can be obtained through the texImage pointer. cubemap broke with this, I suspect you do need to pass the target, as the

[Mesa-dev] softpipe and tgsi_exec.c FAST_MATH

2011-12-31 Thread Dave Airlie
Hi, So in the interest of correctness perf wrt softpipe, flicking tgsi_exec.c FAST_MATH to 0 fixes 15 piglit tests with 0 regressions, I could probably be persuaded to make a SOFTPIPE_FAST_MATH run time set to 0 by default, anyone care one way or another? Dave.

Re: [Mesa-dev] [PATCH 1/3] u_format: implement fetch_rgba_uint and fetch_rgba_sint for integer formats

2012-01-02 Thread Dave Airlie
On Mon, Jan 2, 2012 at 1:07 PM, Marek Olšák mar...@gmail.com wrote: Fetching int as float and vice versa is not allowed. Fetching unsigned int as signed int and vice versa is not allowed either. The first is true, the second isn't, otherwise I'd have implemented this that way. Doing

[Mesa-dev] [RFC PATCH] mesa/gl3: introduce a new option to the gl3 version enable.

2012-01-02 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com EXT_texture_integer isn't strictly equivalent to GL3, the L/I/A integer formats are not required in GL3, and some drivers may not require them. I've no idea if we have any hw that requires it, just sending the patch along after discussion on irc. Signed-off

Re: [Mesa-dev] [RFC PATCH] mesa/gl3: introduce a new option to the gl3 version enable.

2012-01-02 Thread Dave Airlie
EXT_texture_integer isn't strictly equivalent to GL3, the L/I/A integer formats are not required in GL3, and some drivers may not require them. I've no idea if we have any hw that requires it, just sending the patch along after discussion on irc. Another reason was mentioned on irc,

Re: [Mesa-dev] [PATCH 1/3] u_format: implement fetch_rgba_uint and fetch_rgba_sint for integer formats

2012-01-02 Thread Dave Airlie
On Mon, Jan 2, 2012 at 4:40 PM, Marek Olšák mar...@gmail.com wrote: On Mon, Jan 2, 2012 at 3:31 PM, Dave Airlie airl...@gmail.com wrote: On Mon, Jan 2, 2012 at 1:07 PM, Marek Olšák mar...@gmail.com wrote: Fetching int as float and vice versa is not allowed. Fetching unsigned int as signed int

[Mesa-dev] [PATCH] draw: fix piglit base vertex + user vertex array tests

2012-01-02 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fixes draw-elements-base-vertex user_varrays draw-elements-instanced-base-vertex user_varrays for softpipe with no llvm support (DRAW_USE_LLVM=false) I'm not sure if this is the correct answer, but these tests were showing a max_index of 7, then trying

Re: [Mesa-dev] [PATCH] st/mesa: use SINT/UINT formats for VertexAttribIPointer

2012-01-02 Thread Dave Airlie
On Sun, Jan 1, 2012 at 5:46 PM, Christoph Bumiller e0425...@student.tuwien.ac.at wrote: Ping ... Reviewed-by: Dave Airlie airl...@redhat.com Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

Re: [Mesa-dev] [PATCH 1/2] mesa: XCB is no longer optional for GLX or DRI

2012-01-03 Thread Dave Airlie
On Tue, Jan 3, 2012 at 10:25 AM, Kenneth Graunke kenn...@whitecape.org wrote: On 01/02/2012 05:44 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com Signed-off-by: Ian Romanick ian.d.roman...@intel.com ---  configure.ac |   28 ++--  1 files changed,

Re: [Mesa-dev] [PATCH] glsl: Add a lowering pass to remove reads of shader output variables.

2012-01-03 Thread Dave Airlie
Signed-off-by: Kenneth Graunke kenn...@whitecape.org All 3 work for me in testing here with softpipe. so at least have a Tested-by: Dave Airlie airl...@redhat.com Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org

Re: [Mesa-dev] [PATCH] softpipe: remove the 32bits limitation on depth(-stencil) formats

2012-01-03 Thread Dave Airlie
On Wed, Dec 7, 2011 at 8:30 PM, Morgan Armand morgan.de...@gmail.com wrote: This patch remove the 32bits limitation. As a side effect, it bring the support for the GL_ARB_depth_buffer_float extension. No regression have been found on piglit, and all tests for GL_ARB_depth_buffer_float pass

Re: [Mesa-dev] [PATCH 2/3] translate: implement translation of (pure) integer formats

2012-01-04 Thread Dave Airlie
On Mon, Jan 2, 2012 at 1:07 PM, Marek Olšák mar...@gmail.com wrote: The conversion is limited to only a few cases, because converting to any other type shouldn't happen in any driver. Reviewed-by: Dave Airlie airl...@redhat.com Dave. ___ mesa-dev

Re: [Mesa-dev] [PATCH 3/3] translate: implement translation of 10_10_10_2 types

2012-01-04 Thread Dave Airlie
of it is left for future work. Reviewed-by: Dave Airlie airl...@redhat.com Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 2/3] st/mesa: add support for clip vertex.

2012-01-04 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com We need to pass the pre-projection matrix clip planes into the driver, instead of the post for the case we have a vertex shader that writes clip vertex. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_atom_clip.c | 20

[Mesa-dev] [PATCH 1/3] gallium: add new semantic for clip vertex.

2012-01-04 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is to match the gl_ClipVertex output from GLSL 1.20. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/tgsi/tgsi_dump.c |3 ++- src/gallium/include/pipe/p_shader_tokens.h |3 ++- 2 files changed, 4 insertions(+), 2

[Mesa-dev] gallium clip vertex support + softpipe

2012-01-04 Thread Dave Airlie
Hi, This is a GLSL 1.20 feature we don't have support for in softpipe, and we fail the tests, this is just my first attempt to add support, it could probably be done another way, this just seemed the simplest first cut. It passes the tests in piglit now, just waiting a full run to see if it does

Re: [Mesa-dev] [PATCH 2/2] tgsi: consolidate TGSI string arrays in new tgsi_strings.h

2012-01-05 Thread Dave Airlie
On Wed, Jan 4, 2012 at 4:00 PM, Brian Paul bri...@vmware.com wrote: There was some duplication between the tgsi_dump.c and tgsi_text.c files.  Also use some static assertions to help catch errors when adding new TGSI values. I'm not 100% sure, but if you include tgsi_strings.h into two C files

[Mesa-dev] [PATCH] draw/softpipe: EXT_transform_feedback support (v1)

2012-01-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This replaces the current code with an implementation compatible with the new gallium interface. I've left some of the remains of the interface intact so llvmpipe keeps building correctly, and I'll take a look at fixing llvmpipe up later. This passes 119/134

Re: [Mesa-dev] [PATCH] tgsi: consolidate TGSI string arrays in new tgsi_strings.h

2012-01-05 Thread Dave Airlie
. Reviewed-by: Dave Airlie airl...@redhat.com Thanks for that. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] st/mesa: don't crash when clearing non-existant buffers.

2012-01-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this fixes the gl3.0 piglit clearbuffer-depth/stencil/invalid buffer tests for gallium drivers. only question is should mesa be catching this somewhere higher? Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_cb_clear.c | 13

[Mesa-dev] [PATCH] tgsi/softpipe: add VertexID support.

2012-01-05 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This required changing the system value semantics, so we stored a system value per vertex, instance id is the only other system value we currently support, so I span it across the channels. This passes the 3 vertexid-* piglit tests. Signed-off-by: Dave

[Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors.

2012-01-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to perspective, when color/pntc at least need it linear. This fixes that and fixes reflect. Signed-off-by: Dave Airlie airl

[Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to perspective, when color/pntc at least need it linear. v2: no regressions version. use shademodel to pick what none means

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors.

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 1:33 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to perspective, when color/pntc at least need

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 1:57 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to perspective, when color/pntc at least need

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 3:13 PM, Brian Paul bri...@vmware.com wrote: On 01/06/2012 06:57 AM, Dave Airlie wrote: From: Dave Airlieairl...@redhat.com Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 5:04 PM, Dave Airlie airl...@gmail.com wrote: Hi guys, Just a quick note, I've just spent a week or so trying to see where gallium and softpipe were w.r.t GL3.0 support. I've pushed a branch to my repo called softpipe-gl3. It contains patches in various state

[Mesa-dev] softpipe GL3 status

2012-01-06 Thread Dave Airlie
Hi guys, Just a quick note, I've just spent a week or so trying to see where gallium and softpipe were w.r.t GL3.0 support. I've pushed a branch to my repo called softpipe-gl3. It contains patches in various state of usefulness but it brings the piglit results to 220 failures in 7623 tests,

Re: [Mesa-dev] softpipe GL3 status

2012-01-07 Thread Dave Airlie
Let's add new opcodes for things like this. I'll add IABS. cube shadow sampling, some reason ends up getting info from the fallback texture Something in Gallium is probably deciding that GL_DEPTH_COMPONENT is invalid for a cubemap and marking it as incomplete. Hmmm, I'm not sure what

[Mesa-dev] [PATCH 2/2] st_glsl_to_tgsi: use ISSG

2012-01-09 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp

[Mesa-dev] [PATCH 1/2] tgsi: add ISSG support

2012-01-09 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This adds integer version of SSG that GLSL 1.30 can produce. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 14 ++ src/gallium/auxiliary/tgsi/tgsi_info.c |1 + src/gallium/include/pipe

[Mesa-dev] gallium and GL interpolation intersection issue

2012-01-09 Thread Dave Airlie
Okay so we have a gallium/GL/GLSL problem with interpolation, lets see if I can describe the issue: In the beginning there was GL interpolation rules, glShadeModel was the only information you had. Then came GLSL which allowed overriding the GL defaults using specifiers. So the gl_FrontColor

[Mesa-dev] [PATCH] gallium: introduce GLSL based interpolation rules.

2012-01-09 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This introduces an unspecified interpolation paramter that is only allowed for color semantics, so a specified GLSL interpolation will override the ShadeModel specified interpolation, but not vice-versa. This fixes a lot of the interpolation tests in piglit

[Mesa-dev] [PATCH 2/2] draw/softpipe: allow softpipe to set shader params depending on runtime llvm

2012-01-10 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com If draw isn't using llvm we can support vertex texture and integers, These will be fixed up later, but for now allow this check to happen at run-time. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/draw/draw_context.c | 10

[Mesa-dev] [PATCH 1/2] st_extensions: fixup GLSL 1.30 related enables

2012-01-10 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This just fixes up the enables for native integers and EXT_texture_integer support in st/mesa. It also set the MaxClipPlanes to 8. We should consider exposing caps for MCP vs MCD, but since core mesa doesn't care yet maybe we can wait for now. Signed-off

[Mesa-dev] [PATCH] [rfc] mesa: don't allow GLSL 1.30 without GL3.

2012-01-10 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Things can get confused if you expose one without the other which can happen if you are missing one or two of the extensions (like say float textures). Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/version.c |3 +++ 1 files changed, 3

[Mesa-dev] [PATCH] mesa/clear: fix crashes with illegal clear tests.

2012-01-10 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Mesa shouldn't call into the drivers if there are no renderbuffers bound to the attachments for the buffers to be cleared. Fixes a number of the clearbuffer-* tests on softpipe. Signed-off-by: Dave Airlie airl...@redhat.com --- src/mesa/main/clear.c | 15

Re: [Mesa-dev] [PATCH 2/2] draw/softpipe: allow softpipe to set shader params depending on runtime llvm

2012-01-10 Thread Dave Airlie
On Tue, Jan 10, 2012 at 1:08 PM, Jakob Bornecrantz wallbra...@gmail.com wrote: On Tue, Jan 10, 2012 at 12:49 PM, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com If draw isn't using llvm we can support vertex texture and integers, These will be fixed up later

  1   2   3   4   5   6   7   8   9   10   >