Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-21 Thread Jose Fonseca
- Original Message - > Hi Jose, > > Thanks for the review. > > Jose Fonseca writes: > > - Original Message - > >> From: Richard Sandiford > >> > >> RGBA has R at byte 0 and A at byte 3, regardless of platform > >>

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-22 Thread Jose Fonseca
- Original Message - > On Die, 2013-05-21 at 23:15 -0700, Jose Fonseca wrote: > > > > - Original Message ----- > > > Jose Fonseca writes: > > > > - Original Message - > > > >> From: Richard Sandiford > > > >&

Re: [Mesa-dev] [PATCH 5/5] llvmpipe: disable simple_shader optimization

2013-05-22 Thread Jose Fonseca
Roland, Series looks good AFAICT. Thanks for nailing this nasty and long standing issues. - Original Message - > On Tue, May 21, 2013 at 6:12 PM, wrote: > > From: Roland Scheidegger > > > > This optimization disabled mask checks if the shader is simple enough. > > While this should wo

Re: [Mesa-dev] [PATCH 2/2] xlib: add null ctx check in glXDestroyContext()

2013-05-24 Thread Jose Fonseca
Context ); > + XMesaGarbageCollect(dpy); > + free(glxCtx); > + } > } > > > -- > 1.7.10.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Reviewed-by: Jose Fonseca ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-05-24 Thread Jose Fonseca
- Original Message - > Michel Dänzer writes: > >> > For packed formats such as RGBA, the order used in these patches > >> > (which is what I suggested in my proposal) matches the order humans use > >> > for digits of numbers, as well as the Mesa formats. That seems more > >> > import

Re: [Mesa-dev] [PATCH 0/4] V2 Multiple viewports in Gallium

2013-05-28 Thread Jose Fonseca
- Original Message - > > There's no documentation of PIPE_CAP_MAX_VIEWPORTS but otherwise the > > series looks good. > > I've just sent another patch with it. Let me know if that's enough. The updated series looks good to me too. Thanks for changes. Jose ___

Re: [Mesa-dev] [PATCH] gallium/docs: adds documentation for multi viewport cap

2013-05-28 Thread Jose Fonseca
n bytes. > +* ``PIPE_CAP_MAX_VIEWPORTS``: The maximum number of viewports (and scissors > + since they are linked) a driver can support. Returning 0 is equivalent > + to returning 1 because every driver has to support at least a single > + viewport/scissor combination. > >

Re: [Mesa-dev] [PATCH] llvmpipe: get rid of tiled/linear layout remains

2013-05-28 Thread Jose Fonseca
Looks alright AFAICT. Jose - Original Message - > From: Roland Scheidegger > > Eliminate the rest of the no longer needed layout logic. > (It is possible some code could be simplified a bit further still.) > --- > src/gallium/drivers/llvmpipe/lp_scene.c |6 +- > src/gallium

Re: [Mesa-dev] [PATCH] mesa: fix error checking of DXT sRGB formats in _mesa_base_tex_format()

2013-05-30 Thread Jose Fonseca
ensions.EXT_texture_compression_s3tc ? GL_RGBA : -1; >case GL_SLUMINANCE_ALPHA_EXT: >case GL_SLUMINANCE8_ALPHA8_EXT: >case GL_COMPRESSED_SLUMINANCE_ALPHA_EXT: > -- > 1.7.10.4 > > ___ > mesa-dev mail

Re: [Mesa-dev] [PATCH] meta: move vertex array enables for mipmap generation

2013-05-31 Thread Jose Fonseca
Yeah, that looks even better than my fix. Jose - Original Message - > Before, on the second call to GenerateMipmap were enabling two > vertex arrays for the current vertex array object, rather than > the private generate-mipmap vertex array object. This caused > things to blow up elsewhe

Re: [Mesa-dev] [PATCH] gallivm: fix out-of-bounds access with mirror_clamp_to_edge address mode

2013-06-01 Thread Jose Fonseca
Looks great to me. Jose - Original Message - > From: Roland Scheidegger > > Surprising this bug survived so long, we were missing a clamp (in the > linear filtering version). > (Valgrind complained a lot about invalid reads with piglit texwrap, > I've also seen spurios failures in this

Re: [Mesa-dev] and a random apitrace/gallium question..

2013-06-03 Thread Jose Fonseca
- Original Message - > On Fri, May 31, 2013 at 10:18 AM, José Fonseca > wrote: > > I'd support such change. Be it through GL_GREMEDY_string_marker, or > > ARB_debug_output's glDebugMessageInsertARB(DEBUG_SOURCE_THIRD_PARTY_ARB, > > ...), or KHR_debug's glPushDebugGroup(). A Gallium interfa

Re: [Mesa-dev] and a random apitrace/gallium question..

2013-06-03 Thread Jose Fonseca
- Original Message - > On Mon, Jun 3, 2013 at 10:41 AM, Jose Fonseca wrote: > > - Original Message - > >> On Fri, May 31, 2013 at 10:18 AM, José Fonseca > >> wrote: > >> > I'd support such change. Be it through GL_GREMEDY

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > Michel Dänzer writes: > > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > >> > >> I agree that with non-array formats, like B5G6R5 and R5G6B5, replacing > >> them with endian-variant BGR565 and RGB565 makes a lot of sen

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > - Original Message - > > Michel Dänzer writes: > > > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > > >> > > >> I agree that with non-array formats, like B5G6R5 and R5G6B5, replacing > > >>

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > On Die, 2013-06-04 at 01:15 -0700, Jose Fonseca wrote: > > - Original Message - > > > Michel Dänzer writes: > > > > On Fre, 2013-05-24 at 09:11 -0700, Jose Fonseca wrote: > > > >> > > > >>

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-04 Thread Jose Fonseca
- Original Message - > Jose Fonseca writes: > >> Yeah, that's what the patch was trying to do.  Even though the formats > >> were defined as "int"s, the int layout was extra information on top of > >> what's already there.  The int i

Re: [Mesa-dev] [PATCH 1/4] gallivm: (trivial) fix lp_build_concat_n

2013-06-04 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > The code was designed to handle no-op concat but failed (unless the > caller was using same pointer for src and dst). > --- > src/gallium/auxiliary/gallivm/lp_bld_pack.c |6 +- > 1 file changed, 5 insertions(+), 1 deletion(-)

Re: [Mesa-dev] [PATCH] mesa: change MAX_PROGRAM_ADDRESS_REGS to 1, clamp to it in state tracker

2013-06-04 Thread Jose Fonseca
pc->MaxParameters = pc->MaxNativeParameters = > screen->get_shader_param(screen, sh, PIPE_SHADER_CAP_MAX_CONSTS); > > -- > 1.7.10.4 > > _______ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/

Re: [Mesa-dev] [PATCH] Use 1 rather than 0 as the fallback cache line size.

2013-06-05 Thread Jose Fonseca
- Original Message - > Without this, llvmpipe ends up giving a zero size to all uncompressed > textures > on non-x86 systems, since align() cannot handle a 0 alignment. Making the > default 1 seemed preferable to adding checks for 0. > > Signed-off-by: Richard Sandiford > --- > src/ga

Re: [Mesa-dev] [PATCH 2/3] llvmpipe: add support for layered rendering

2013-06-07 Thread Jose Fonseca
- Original Message - > Am 06.06.2013 03:15, schrieb Brian Paul: > > Reviewed-by: Brian Paul > > > > Just two minor nits below. > > > > > > On 06/05/2013 05:44 PM, srol...@vmware.com wrote: > >> From: Roland Scheidegger > >> > >> Mostly just make sure the layer parameter gets passed t

Re: [Mesa-dev] [PATCH 1/3] gallium/tgsi: add missing string for layer semantic

2013-06-07 Thread Jose Fonseca
+80,7 @@ const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] = > "TEXCOORD", > "PCOORD", > "VIEWPORT_INDEX" > + "LAYER" > }; > > const char *tgsi_texture_names[TGSI_TEXTURE_COUNT] = > -- > 1.7.9.5 > Reviewed-by: Jose Fonseca ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 3/3] llvmpipe: bump 3d and cube map limits to 2048 and 8192 respectively

2013-06-07 Thread Jose Fonseca
_TEXTURE_3D_LEVELS 12 /* 2K x 2K x 2K for now */ > +#define LP_MAX_TEXTURE_CUBE_LEVELS 14 /* 8K x 8K for now */ > #define LP_MAX_TEXTURE_ARRAY_LAYERS 512 /* 8K x 512 / 8K x 8K x 512 */ > Reviewed-by: Jose Fonseca ___ mesa-dev mailing lis

Re: [Mesa-dev] [PATCH 2/2] util: fix util_clear_render_target and util_clear_depth_stencil layer handling

2013-06-07 Thread Jose Fonseca
- Original Message - > Am 07.06.2013 12:14, schrieb Marek Olšák: > >> diff --git a/src/gallium/auxiliary/util/u_transfer.c > >> b/src/gallium/auxiliary/util/u_transfer.c > >> index 56e059b..7804f2a 100644 > >> --- a/src/gallium/auxiliary/util/u_transfer.c > >> +++ b/src/gallium/auxiliary/ut

Re: [Mesa-dev] [PATCH] llvmpipe: Use saturating add/sub for UNORM formats

2013-06-07 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > lp_build_add and lp_build_sub have fallback code for cases > that cannot be handled by known intrinsics. For UNORM formats, > this code was using modulo rather than saturating arithmetic. > > This fixes some rendering issues for a gnome sess

Re: [Mesa-dev] [PATCH 2/3] llvmpipe: add support for layered rendering

2013-06-07 Thread Jose Fonseca
- Original Message - > Am 07.06.2013 16:55, schrieb Jose Fonseca: > > > > > > - Original Message - > >> Am 06.06.2013 03:15, schrieb Brian Paul: > >>> Reviewed-by: Brian Paul > >>> > >>> Just two minor nits b

Re: [Mesa-dev] [PATCH] swrast: add texfetch code for some XBGR formats

2013-06-10 Thread Jose Fonseca
here */ > + > > > /* MESA_FORMAT_YCBCR > */ > -- > 1.7.10.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Reviewed-by: Jose Fonseca ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/2] gallium/draw: add limits to the clip and cull distances

2013-06-12 Thread Jose Fonseca
- Original Message - > Am 11.06.2013 05:39, schrieb Zack Rusin: > > There are strict limits on those registers. Define the maximums > > and use them instead of magic numbers. Also allows us to add > > some extra sanity checks. > > Suggested by Brian. > > > > Signed-off-by: Zack Rusin >

Re: [Mesa-dev] [PATCH 2/2] gallium/draw: add limits to the clip and cull distances

2013-06-12 Thread Jose Fonseca
- Original Message - [...] > On an unrelated note ... packing clip distances into vec4s sucks, I want > scalar arrays. OMG, then we must fix it! Now seriously, we had the discussion about packed vs unpacked clip distances -- I don't feel strongly either way and I don't recall the ration

Re: [Mesa-dev] [PATCH] draw: fix a regression in computing max elt

2013-06-13 Thread Jose Fonseca
Sounds good. Thanks for tracking this down! Jose - Original Message - > gl can use elts without setting indices, in which case > our eltMax was set to 0 and always invoking the overflow > condition. So by default set eltMax to maximum, it will > be curbed by draw_set_indexes (if it ever c

Re: [Mesa-dev] [PATCH] draw: don't clear the so targets until we stream out

2013-06-14 Thread Jose Fonseca
Sounds good to me. Jose - Original Message - > Since draw auto fetches the count from the buffers, we can't > just clear them on bind, we need to wait until the actual > stream out is performed. Otherwise the count for draw auto > will be zero. Plus is cleaner to have draw do it rather >

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-16 Thread Jose Fonseca
- Original Message - > - Original Message - > > Jose Fonseca writes: > > >> Yeah, that's what the patch was trying to do.  Even though the formats > > >> were defined as "int"s, the int layout was extra information on top of &

Re: [Mesa-dev] [PATCH] gallium: add condition parameter to render_condition

2013-06-17 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > From: Roland Scheidegger > > For conditional rendering this makes it possible to skip rendering > if either the predicate is true or false, as supported by d3d10 > (in fact previously it was sort of implied skip rendering if predicate > is f

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-17 Thread Jose Fonseca
- Original Message - > On Sun, 2013-06-16 at 10:22 -0700, Jose Fonseca wrote: > > > Ok. I think this patch series is sound from an implementation POV. I > > see no point in delaying further. We can tweak things afterwards if > > deemed necessary. > > >

Re: [Mesa-dev] [PATCH 1/2] gallium: fix PIPE_QUERY_TIMESTAMP_DISJOINT

2013-06-19 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > The semantics didn't really make sense, not really matching neither d3d9 > (though the docs are all broken there) nor d3d10. So make it match d3d10 > semantics, which actually gives meaning to the "disjoint" part. > Drivers are fixed u

Re: [Mesa-dev] [PATCH 2/2] softpipe: handle all queries, and change for the new disjoint semantics

2013-06-19 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > From: Roland Scheidegger > > The driver can do render_condition but wasn't handling the occlusion > and so_overflow predicates (though the latter might not work yet due > to gs support). > --- > src/gallium/drivers/softpipe/sp_query.c | 3

Re: [Mesa-dev] [PATCH 1/2] gallium: fix PIPE_QUERY_TIMESTAMP_DISJOINT

2013-06-19 Thread Jose Fonseca
- Original Message - > > > - Original Message - > > From: Roland Scheidegger > > > > The semantics didn't really make sense, not really matching neither d3d9 > > (though the docs are all broken there) nor d3d10. So make it match d3d10 > > semantics, which actually gives meanin

Re: [Mesa-dev] [PATCH 03/13] gallium: Introduce 32-bit bytewise format names

2013-06-19 Thread Jose Fonseca
- Original Message - > Jose Fonseca writes: > > - Original Message - > >> On Sun, 2013-06-16 at 10:22 -0700, Jose Fonseca wrote: > >> > >> > Ok. I think this patch series is sound from an implementation POV. I > >> > se

Re: [Mesa-dev] [PATCH 0/8] util: big-endian fixes for format generator

2013-06-19 Thread Jose Fonseca
- Original Message - > This series is a replacement for the util part of: > > http://lists.freedesktop.org/archives/mesa-dev/2013-May/039419.html > > It doesn't include any of the controversial format name parts of > those patches (although of course they're still needed in some form

Re: [Mesa-dev] [PATCH 04/14] gallium: Document packed formats

2013-06-19 Thread Jose Fonseca
Series looks good to me too. Jose - Original Message - > Signed-off-by: Adam Jackson > --- > src/gallium/docs/format.rst | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/docs/format.rst b/src/gallium/docs/format.rst > index 2514656..e270d93 1

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

2013-06-21 Thread Jose Fonseca
Yes, that's definetely wrong with the newer query types. And I agree that for most query types, the situation of nothing being drawned inside the query is too rare to be of concern. Though I wonder if we should do better in a follow on patch for time queries -- which applications might emit ind

Re: [Mesa-dev] [PATCH] st/mesa: handle SNORM formats in generic CopyPixels path

2013-06-24 Thread Jose Fonseca
- Original Message - > --- > src/gallium/auxiliary/util/u_format.c | 14 ++ > src/gallium/auxiliary/util/u_format.h | 3 +++ > src/mesa/state_tracker/st_cb_drawpixels.c | 6 ++ > 3 files changed, 23 insertions(+) > > diff --git a/src/gallium/auxiliary/util/u_fo

Re: [Mesa-dev] [PATCH] st/mesa: handle SNORM formats in generic CopyPixels path

2013-06-24 Thread Jose Fonseca
- Original Message - > On Mon, Jun 24, 2013 at 6:12 PM, Jose Fonseca wrote: > > > > > > - Original Message - > >> --- > >>  src/gallium/auxiliary/util/u_format.c     | 14 ++ > >>  src/gallium/auxiliary/util/u_fo

Re: [Mesa-dev] [PATCH] st/mesa: handle SNORM formats in generic CopyPixels path

2013-06-24 Thread Jose Fonseca
n change. Jose - Original Message - > Wouldn't it be easier to just make util_format_description table-based > and inline instead of switch-based? Something like: > > return format < PIPE_FORMAT_COUNT ? table[format] : NULL; > > Marek > > On Mon

Re: [Mesa-dev] [PATCH 2/2] draw: allow overflows in the llvm paths

2013-06-25 Thread Jose Fonseca
Series looks good to me. - Original Message - > Because our code couldn't handle it we were skipping rendering > if we detected overflows. According to the spec we should > still render but with all 0 vertices, which is what the llvm > code already does. So for the llvm paths lets enable p

Re: [Mesa-dev] [PATCH 1/3] draw: account for elem size when computing overflow

2013-06-26 Thread Jose Fonseca
- Original Message - > We weren't taking into account the size of element > that is to be fetched, which meant that it was possible > to overflow the buffer reads if the stride was very > close to the end of the buffer, e.g. stride = 3, buffer > size = 4, and the element to be read = 4. T

Re: [Mesa-dev] [PATCH] mesa: update glext.h to version 20130624

2013-06-26 Thread Jose Fonseca
- Original Message - > In glapi_priv.h we always need the typedef for the GLclampx type > since GL_OES_fixed_point is now defined in glext.h but the > GLclampx type is not. GLclampx is not used by anything in glext.h > but we need it for GL ES dispatch. > --- > include/GL/glext.h

Re: [Mesa-dev] [PATCH 2/2] softpipe: honor predication for clear_render_target and clear_depth_stencil

2013-06-26 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > From: Roland Scheidegger > > trivial, copied from llvmpipe > --- > src/gallium/drivers/softpipe/sp_surface.c | 42 > +++-- > 1 file changed, 40 insertions(+), 2 deletions(-) > > diff --git a/src/gallium/drivers/s

Re: [Mesa-dev] [PATCH 2/2] mesa: add const qualifier to glMultiDrawElementsEXT() indices param

2013-06-26 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > The 20130624 version of glext.h changed this to match the > glMultiDrawElements() function which already had the extra const > qualifier. > > Fixes warnings/errors that seem to vary from one compiler to the next. > --- > src/mapi/glap

Re: [Mesa-dev] [PATCH 3/4] configure.ac: warn when declarations follow code

2013-06-26 Thread Jose Fonseca
Several components are never expected to be built with MSVC (glx, most dri drivers), so this would put (most likely undesired) burden on those maintainers. I suspect we'll need to do this on a per directory basis... Jose - Original Message - > Since it's an error with MSVC. > --- > con

Re: [Mesa-dev] [PATCH 3/4] configure.ac: warn when declarations follow code

2013-06-26 Thread Jose Fonseca
The other patches look fine though. Jose - Original Message - > Several components are never expected to be built with MSVC (glx, most dri > drivers), so this would put (most likely undesired) burden on those > maintainers. > > I suspect we'll need to do this on a per directory basis...

Re: [Mesa-dev] [PATCH 1/4] mesa: move declarations before code

2013-06-27 Thread Jose Fonseca
- Original Message - > On 06/26/2013 04:33 PM, Eric Anholt wrote: > > Brian Paul writes: > > > >> On 06/26/2013 03:56 PM, Ian Romanick wrote: > >>> Patches 1 and 4 are > >>> > >>> Reviewed-by: Ian Romanick > >>> > >>> For patch 3, I share Jose's concern. I would very much like to see t

Re: [Mesa-dev] [PATCH] llvmpipe: handle offset_clamp

2013-06-27 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > This was just ignored (unless for some reason like unfilled polys draw was > handling this). Patch looks good. > I'm not convinced of that code, putting the float for the clamp in the key > isn't really a good idea. Indeed. > Then a

Re: [Mesa-dev] [PATCH] llvmpipe: fix a bug in opaque optimization

2013-06-27 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > If there are queries active the opaque optimization reseting the bin needs to > be disabled. > (Not really tested since the bug was discovered by code inspection not > an actual test failure.) > --- > src/gallium/drivers/llvmpipe/lp_que

Re: [Mesa-dev] [PATCH] os: add os_get_process_name() function

2013-06-27 Thread Jose Fonseca
- Original Message - > --- > src/gallium/auxiliary/Makefile.sources |1 + > src/gallium/auxiliary/os/os_process.c | 86 > > src/gallium/auxiliary/os/os_process.h | 40 +++ > 3 files changed, 127 insertions(+) > create mode 100644 s

Re: [Mesa-dev] [PATCH 1/2] draw/gallivm: export overflow arithmetic to its own file

2013-06-27 Thread Jose Fonseca
Series looks great. Thanks. Jose - Original Message - > We'll be reusing this code so lets put it in a common file > and use it in the draw module. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/Makefile.sources |1 + > src/gallium/auxiliary/draw/draw_llvm

Re: [Mesa-dev] [PATCH 1/2] svga: use switch statement in svga_shader_type()

2013-06-28 Thread Jose Fonseca
- Original Message - > Safer in case the PIPE_SHADER_x tokens get renumbered (as Marek > wanted to do). Renumbering PIPE_SHADER_x seems a pure time waster -- there is much more code that expects the current order -- and I see no benefit. This patch looks good nevertheles. > --- > src

Re: [Mesa-dev] [PATCH 2/2] svga: pass svga_compile_key by reference instead of value

2013-06-28 Thread Jose Fonseca
Looks good to me - Original Message - > --- > src/gallium/drivers/svga/svga_tgsi.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/src/gallium/drivers/svga/svga_tgsi.c > b/src/gallium/drivers/svga/svga_tgsi.c > index 56529c6..29fbe84 100644 > --

Re: [Mesa-dev] [PATCH 1/6] mesa, gallium: renumber shader indices according to their placement in pipeline

2013-06-28 Thread Jose Fonseca
- Original Message - > See my explanation in mtypes.h. > --- > src/gallium/include/pipe/p_defines.h |7 --- > src/glsl/linker.cpp| 16 > src/mesa/drivers/dri/i965/brw_shader.cpp |8 ++-- > src/mesa/main/mtypes.h

Re: [Mesa-dev] [PATCH] llvmpipe: fix timer query if there's no bins

2013-06-28 Thread Jose Fonseca
Looks good. - Original Message - > From: Roland Scheidegger > > b04a295a4a0cd2defe352b3193b5fa79ca8fc9fc removed seemingly unnecessary > code in get_query. Turns out this code could in fact be reached - while > timestamps are always binned, if there are no bins (which happens if fb > siz

Re: [Mesa-dev] [PATCH 1/4] mesa: move declarations before code

2013-06-30 Thread Jose Fonseca
- Original Message - > Brian Paul writes: > > > On 06/26/2013 04:33 PM, Eric Anholt wrote: > >> Brian Paul writes: > >> > >>> On 06/26/2013 03:56 PM, Ian Romanick wrote: > Patches 1 and 4 are > > Reviewed-by: Ian Romanick > > For patch 3, I share Jose's concer

Re: [Mesa-dev] [PATCH] mesa: renumber shader indices according to their placement in pipeline

2013-07-01 Thread Jose Fonseca
- Original Message - > See my explanation in mtypes.h. > > v2: don't do this in gallium Thanks for the update, Marek. I think that the "These MUST have the same values as gallium's PIPE_SHADER_*" comment in gl_shader_type enum can be removed now. Otherwise looks good AFAICT (but note

Re: [Mesa-dev] [PATCH] draw/translate: fix instancing

2013-07-01 Thread Jose Fonseca
art, unsigned count) > >BEGIN_NIC0(ctx->push, NVC0_3D(VERTEX_DATA), size); > > - ctx->translate->run_elts16(ctx->translate, elts, nr, ctx->instance_id, > + ctx->translate->run_elts16(ctx->translate, elts, nr, 0, > ctx->in

Re: [Mesa-dev] [PATCH] gallivm: do per-pixel lod calculations for explicit lod

2013-07-03 Thread Jose Fonseca
I don't fully grasp every detail (many paths), but looks good in principle. Where do the 16xf32 vectors come from? Also, please add a comment somewhere summarizing all the code paths for lod handling: - AVX vs non AVX - SOA vs AOS - scalar lod vs stamp lod But I couldn't spot anything wrong

Re: [Mesa-dev] [PATCH 2/2] draw: fix overflows in the indexed rendering paths

2013-07-03 Thread Jose Fonseca
Series looks good AFAICT. Reviewed-by: Jose Fonseca - Original Message - > The semantics for overflow detection are a bit tricky with > indexed rendering. If the base index in the elements array > overflows, then the index of the first element should be used, > if the ind

Re: [Mesa-dev] [PATCH 0/3] save about 1MB per llvm vertex shader

2013-07-09 Thread Jose Fonseca
Frank, Sorry for the long delay. Lately I haven't been able to keep up with email, both internal or external. This series looks great. Two comments: - currently we prefer the old JIT to MCJIT. could you confirm that this series should work with the old JIT and MCJIT just as well? - we shou

Re: [Mesa-dev] [PATCH 2/2] gallivm: handle srgb-to-linear and linear-to-srgb conversions

2013-07-11 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > srgb-to-linear is using 3rd degree polynomial for now which should be _just_ > good enough. Reverse is using some rational polynomials and is quite > accurate, > though not hooked into llvmpipe's blend code yet and hence unused (untest

Re: [Mesa-dev] [PATCH 2/2] gallivm: handle srgb-to-linear and linear-to-srgb conversions

2013-07-11 Thread Jose Fonseca
- Original Message - > Am 11.07.2013 15:50, schrieb Jose Fonseca: > > > > > > - Original Message - > >> From: Roland Scheidegger > >> > >> srgb-to-linear is using 3rd degree polynomial for now which should be > >>

Re: [Mesa-dev] [PATCH 1/2] gallivm: better support for fast rsqrt

2013-07-11 Thread Jose Fonseca
Looks good. Thanks for the updates. Jose - Original Message - > From: Roland Scheidegger > > We had to disable fast rsqrt before because it wasn't precise enough etc. > However in situations when we know we're not going to need more precision > we can still use a fast rsqrt (which can b

Re: [Mesa-dev] [PATCH 2/2] gallivm: handle srgb-to-linear and linear-to-srgb conversions

2013-07-11 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > srgb-to-linear is using 3rd degree polynomial for now which should be _just_ > good enough. Reverse is using some rational polynomials and is quite > accurate, > though not hooked into llvmpipe's blend code yet and hence unused (untested

Re: [Mesa-dev] [PATCH 2/2] gallivm: handle srgb-to-linear and linear-to-srgb conversions

2013-07-11 Thread Jose Fonseca
- Original Message - > Am 11.07.2013 18:54, schrieb Jose Fonseca: > > - Original Message - > >> From: Roland Scheidegger > >> > >> srgb-to-linear is using 3rd degree polynomial for now which should be > >> _just_ > >> good

Re: [Mesa-dev] [PATCH] gallivm: handle srgb-to-linear and linear-to-srgb conversions

2013-07-12 Thread Jose Fonseca
Looks good. Thanks for the update. Jose - Original Message - > From: Roland Scheidegger > > srgb-to-linear is using 3rd degree polynomial for now which should be _just_ > good enough. Reverse is using some rational polynomials and is quite > accurate, > though not hooked into llvmpipe's

Re: [Mesa-dev] [PATCH 3/3] tgsi: rename the TGSI fragment kill opcodes

2013-07-12 Thread Jose Fonseca
ite lean and straightforward these days, but the opcodes are still a big mess, and shaders are one of the most (if not the most) important parts of the interface. For the series: Reviewed-by: Jose Fonseca Jose - Original Message - > TGSI_OPCODE_KIL and KILP had confusing names. The

Re: [Mesa-dev] [PATCH 1/3] gallium: add expand_resource interface

2013-07-12 Thread Jose Fonseca
I admit I haven't fully understood what's being proposed yet. But just a few quick words. I always wanted to have a "present" method that ensures that the contents of a resource is made visible to whatever the consumer is (full-screen flip, blit to primary surface, a compositor, etc.). We have

Re: [Mesa-dev] [PATCH 2/3] draw/llvm: cache LLVM compilation

2013-07-12 Thread Jose Fonseca
The series looks alright AFAICT. The only request I have is the ability to disable the cache, so that we can iron out any eventual bugs. Another thing we eventually need to think about is thread safety. Though that's not a new problem, so it can be addressed in a follow-on change. Jose -

Re: [Mesa-dev] [PATCH] draw: fix incorrect color of flat-shaded clipped lines

2014-02-03 Thread Jose Fonseca
rl?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=JXBgl5uBqvPNX%2BdbIW3nyeyaAE1k%2Fe5i%2BFx%2FJu%2Fujvs%3D%0A&s=23b3fafec3c062f542eff7bdeda679e533c99024a5f2b0708c0ee862c8342ca7 > Reviewed-by: Jose Fonseca ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] gallium/auxiliary/indices: replace free() with FREE()

2014-02-03 Thread Jose Fonseca
reedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=XsDKKn2C38Z0QNdS%2Boi50mFvk4%2BiW%2F6RaEWprRFlUxU%3D%0A&s=d876b41ad03741ecc863ed4860b4b2d7e88ce60a2b040d0f2493f3c6496ada1a > Reviewed-by: Jose Fonseca ___

Re: [Mesa-dev] [PATCH 2/2] svga: check shader size against max command buffer size

2014-02-03 Thread Jose Fonseca
Looks good AFAICT. Jose - Original Message - > If the shader is too large, plug in a dummy shader. This patch also > reworks the existing dummy shader code. > --- > src/gallium/drivers/svga/include/svga_reg.h |1 + > src/gallium/drivers/svga/svga_state_fs.c| 60 >

Re: [Mesa-dev] [PATCH] gallivm: allow large numbers of temporaries

2014-02-04 Thread Jose Fonseca
Sounds great to me. Jose - Original Message - > The number of allowed temporaries increases almost with every > iteration of an api. We used to support 128, then we started > increasing and the newer api's support 4096+. So if we notice > that the number of temporaries is larger than our

Re: [Mesa-dev] [PATCH] gallivm: fix F2U opcode

2014-02-04 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > From: Roland Scheidegger > > Previously, we were really doing F2I. And also move it to generic section. > (Note that for llvmpipe the code generated is definitely bad, due to lack > of unsigned conversions with sse. I think though what llvm

Re: [Mesa-dev] Request for support of GL_AMD_pinned_memory and GL_ARB_buffer_storage extensions

2014-02-05 Thread Jose Fonseca
I honestly hope that GL_AMD_pinned_memory doesn't become popular. It would have been alright if it wasn't for this bit in http://www.opengl.org/registry/specs/AMD/pinned_memory.txt which says: 2) Can the application still use the buffer using the CPU address? RESOLVED: YES. However,

Re: [Mesa-dev] [PATCH 2/3] gallivm: make sure analysis works with large number of immediates

2014-02-05 Thread Jose Fonseca
Let's update LP_MAX_TGSI_IMMEDIATES and use it instead of 4096. Otherwise looks good. Jose - Original Message - > We need to handle a lot more immediates and in order to do that > we also switch from allocating this structure on the stack to > allocating it on the heap. > > Signed-off-

Re: [Mesa-dev] [PATCH 3/3] tgsi/ureg: increase the number of immediates

2014-02-05 Thread Jose Fonseca
ureg_tokens { > #define UREG_MAX_SYSTEM_VALUE PIPE_MAX_ATTRIBS > #define UREG_MAX_OUTPUT PIPE_MAX_SHADER_OUTPUTS > #define UREG_MAX_CONSTANT_RANGE 32 > -#define UREG_MAX_IMMEDIATE 256 > +#define UREG_MAX_IMMEDIATE 4096 > #define UREG_MAX_ADDR 2 > #define UREG_MAX_PRED 1 >

Re: [Mesa-dev] Request for support of GL_AMD_pinned_memory and GL_ARB_buffer_storage extensions

2014-02-05 Thread Jose Fonseca
- Original Message - > On 05.02.2014 18:08, Jose Fonseca wrote: > > I honestly hope that GL_AMD_pinned_memory doesn't become popular. It would > > have been alright if it wasn't for this bit in > > https://urldefense.proofpoint.com/v1/url?u=http://ww

Re: [Mesa-dev] Request for support of GL_AMD_pinned_memory and GL_ARB_buffer_storage extensions

2014-02-05 Thread Jose Fonseca
n Wed, Feb 5, 2014 at 11:53 AM, Grigori Goronzy wrote: > > > On 05.02.2014 18:08, Jose Fonseca wrote: > > > >> I honestly hope that GL_AMD_pinned_memory doesn't become popular. It > >> would have been alright if it wasn't for this bit in > &

Re: [Mesa-dev] Request for support of GL_AMD_pinned_memory and GL_ARB_buffer_storage extensions

2014-02-05 Thread Jose Fonseca
- Original Message - > > > - Original Message - > > On 05.02.2014 18:08, Jose Fonseca wrote: > > > I honestly hope that GL_AMD_pinned_memory doesn't become popular. It > > > would > > > have been alright if it wasn't for th

Re: [Mesa-dev] Request for support of GL_AMD_pinned_memory and GL_ARB_buffer_storage extensions

2014-02-05 Thread Jose Fonseca
the GPU address space permanently, while > ARB_buffer_storage allows mapping GPU memory to the CPU address > permanently. At the end of the day, both the GPU and the CPU can read > and modify the same buffer and all they need to use for > synchronization is fences. > > Marek > >

Re: [Mesa-dev] [PATCH 10/10] mesa: remove unneeded glthread.c file

2014-03-03 Thread Jose Fonseca
Series looks good to me. Thanks for the nice cleanup. Jose - Original Message - > The _glthread_GetID() function is also defined in mapi_glapi.c > --- >  src/mapi/glapi/Makefile.sources |    1 - >  src/mapi/glapi/SConscript       |    1 - >  src/mapi/glapi/glthread.c       |    7 ---

Re: [Mesa-dev] [PATCH 1/3] c11: Fix nano to second conversion.

2014-03-04 Thread Jose Fonseca
- Original Message - > On Mon, 2014-03-03 at 21:41 +, jfons...@vmware.com wrote: > > From: José Fonseca > > I think the commit summary should say 'nano to millisecond'? Indeed. Thanks. Jose ___ mesa-dev mailing list mesa-dev@lists.freedesk

Re: [Mesa-dev] [PATCH] translate: fix buffer overflows

2014-03-04 Thread Jose Fonseca
Looks good. Adding a few assertions before dereferencing these arrays might come handy in the future. Jose - Original Message - > Because in draw we always inject position at slot 0 whenever > fragment shader would take the maximum number of inputs (32) it > meant that we had PIPE_MAX_A

Re: [Mesa-dev] [PATCH] draw/llvm: fix generation of the VS with GS present

2014-03-04 Thread Jose Fonseca
Makes sense. Good catch. BTW, both changes seem candidate for stable branch. Jose - Original Message - > draw_current_shader_* functions return a final output when considering > both the geometry shader and the vertex shader. But when code generating > vertex shader we can not be using o

Re: [Mesa-dev] i965 GL_ARB_buffer_storage

2014-03-04 Thread Jose Fonseca
- Original Message - > One thing I noticed while working on this was that we only reallocate buffer > storage for INVALIDATE_BUFFER_BIT when UNSYNCHRONIZED_BIT is unset. The > ARB_mbr spec says that the contents "may be discarded", not "must be > discarded". However, while writing the gla

Re: [Mesa-dev] i965 GL_ARB_buffer_storage

2014-03-04 Thread Jose Fonseca
- Original Message - > - Original Message - > > One thing I noticed while working on this was that we only reallocate > > buffer > > storage for INVALIDATE_BUFFER_BIT when UNSYNCHRONIZED_BIT is unset. The > > ARB_mbr spec says that the contents "may be discarded", not "must be >

Re: [Mesa-dev] i965 GL_ARB_buffer_storage

2014-03-04 Thread Jose Fonseca
I agree that apps that only write to a buffer shouldn't use both MAP_UNSYNCHRONIZED and MAP_INVALIDATE_BUFFER_BIT, if that's your point. Apps should stick so a single strategy. But it seems a common pitfall. Note that MAP_INVALIDATE_*_BIT purpose is not just avoid synchronization. They also a

Re: [Mesa-dev] [PATCH] mesa: remove remaining uses of _glthread_GetID()

2014-03-05 Thread Jose Fonseca
rs/dri/radeon/radeon_fbo.c > @@ -783,8 +783,7 @@ radeon_render_texture(struct gl_context * ctx, > return; > } > > - DBG("Begin render texture tid %lx tex=%u w=%d h=%d refcount=%d\n", > - _glthread_GetID(), > + DBG("Begin render texture tex=%u w=%d h=%d refcount=%d\n", > att->Texture->Name, newImage->Width, newImage->Height, > rb->RefCount); > > -- > 1.7.10.4 > Reviewed-by: Jose Fonseca ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] st/mesa: Add R8G8B8A8_SRGB case to st_pipe_format_to_mesa_format.

2014-03-06 Thread Jose Fonseca
- Original Message - > On 03/06/2014 09:59 AM, jfons...@vmware.com wrote: > > From: José Fonseca > > > > With the recent SRGB changes all my automated OpenGL llvmpipe tests > > (piglit, conform, glretrace) start asserting with the backtrace below. > > > > I'm hoping this change will fix

Re: [Mesa-dev] [PATCH] st/mesa: Add R8G8B8A8_SRGB case to st_pipe_format_to_mesa_format.

2014-03-06 Thread Jose Fonseca
- Original Message - > > > - Original Message - > > On 03/06/2014 09:59 AM, jfons...@vmware.com wrote: > > > From: José Fonseca > > > > > > With the recent SRGB changes all my automated OpenGL llvmpipe tests > > > (piglit, conform, glretrace) start asserting with the backtrace

Re: [Mesa-dev] [PATCH] st/mesa: Add R8G8B8A8_SRGB case to st_pipe_format_to_mesa_format.

2014-03-06 Thread Jose Fonseca
- Original Message - > Am 06.03.2014 18:32, schrieb Jose Fonseca: > > > > > > - Original Message - > >> > >> > >> - Original Message - > >>> On 03/06/2014 09:59 AM, jfons...@vmware.com wrote: > >>>

Re: [Mesa-dev] [PATCH] mesa: add MESA_FORMAT_R8G8B8A8_SRGB

2014-03-06 Thread Jose Fonseca
- Original Message - > To match PIPE_FORMAT_R8G8B8A8_SRGB. > --- > src/mesa/main/format_pack.c | 27 +++ > src/mesa/main/format_unpack.c| 14 ++ > src/mesa/main/formats.c | 15 +++ > src/mesa/main/formats.h

Re: [Mesa-dev] [PATCH] st/mesa: Add R8G8B8A8_SRGB case to st_pipe_format_to_mesa_format.

2014-03-07 Thread Jose Fonseca
- Original Message - > On 03/07/2014 09:45 AM, Roland Scheidegger wrote: > > Am 07.03.2014 05:47, schrieb Chia-I Wu: > >> On Fri, Mar 7, 2014 at 11:56 AM, Chia-I Wu wrote: > >>> On Fri, Mar 7, 2014 at 2:04 AM, Jose Fonseca wrote: > >>

<    2   3   4   5   6   7   8   9   10   11   >