Re: [Mesa-dev] [PATCH 0/5] Head-up display for Gallium DRI2 drivers

2013-03-25 Thread Jose Fonseca
- Original Message - > Hi everyone, one image is better than a thousand words: > > http://people.freedesktop.org/~mareko/gallium-hud.png > > So there you have it. This gallium module can draw transparent graphs and > text on top of what apps are rendering. By default, it can show framer

Re: [Mesa-dev] [PATCH 3/3] gallium: undef PACKAGE_* macros to silence warnings

2013-03-25 Thread Jose Fonseca
desktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Series looks good 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] draw/so: Fix bogus assert

2013-03-29 Thread Jose Fonseca
\ >case PIPE_PRIM_LINES_ADJACENCY: \ >case PIPE_PRIM_LINE_STRIP_ADJACENCY: \ > -- > 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] gallivm: cleanup the gs interface

2013-03-29 Thread Jose Fonseca
Thanks for the cleanup. Reviewed-by: Jose Fonseca Jose - Original Message - > Instead of void pointers use a base interface. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/draw/draw_llvm.c | 77 > --- > src/gall

Re: [Mesa-dev] [PATCH] docs: add a new page documenting known application issues

2013-03-29 Thread Jose Fonseca
Looks good to me Brian. Just a couple of comments. - Original Message - > Let's try to update this when we find other broken applications... docs/ is growing a lot of stuff, with disparate target audiences. Maybe we could establish some sort of directory hierachary there: docs/apps/in

Re: [Mesa-dev] [PATCH 2/3] draw: Implement support for primitive id

2013-03-30 Thread Jose Fonseca
tgsi/tgsi_scan.c > index c59b3a7..373391d 100644 > --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c > +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c > @@ -186,6 +186,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens, >} >else if (fulldecl->Semantic.Name == >TGSI_SEMANTIC_VERTEXID) { > info->uses_vertexid = TRUE; > + } else if (fulldecl->Semantic.Name == > TGSI_SEMANTIC_PRIMID) { > + info->uses_primid = TRUE; >} > } > else if (file == TGSI_FILE_OUTPUT) { > diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h > b/src/gallium/auxiliary/tgsi/tgsi_scan.h > index 235e6a3..9debc34 100644 > --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h > +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h > @@ -71,6 +71,7 @@ struct tgsi_shader_info > boolean uses_kill; /**< KIL or KILP instruction used? */ > boolean uses_instanceid; > boolean uses_vertexid; > + boolean uses_primid; > boolean origin_lower_left; > boolean pixel_center_integer; > boolean color0_writes_all_cbufs; Looks good to me. 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] drirc: set always_have_depth_buffer for Topogon

2013-03-30 Thread Jose Fonseca
> mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Looks great. 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] drirc: set always_have_depth_buffer for Topogon

2013-04-02 Thread Jose Fonseca
- Original Message - > On 03/29/2013 05:30 PM, Brian Paul wrote: > > Has this bug been reported to the Topogun developer? Yes, I have reported via http://www.topogun.com/support/contact-us.htm on 29th September 2012. I received no reply since, nor did I try a second time. Also note tha

Re: [Mesa-dev] [PATCH 2/2] gallivm: bring back optimized but incorrect float to smallfloat optimizations

2013-04-02 Thread Jose Fonseca
- Original Message - > From: Roland Scheidegger > > Conceptually the same as previously done in float_to_half. > Should cut down number of instructions from 14 to 10 or so, but > will promote some NaNs to Infs, so it's disabled. > It gets a bit tricky though handling all the cases corre

Re: [Mesa-dev] [PATCH] PowerPC: Altivec IROUND operation

2013-04-02 Thread Jose Fonseca
I don't see need/benefit in mixing "iround" (ie, float -> int) with "round" (ie, float -> float). If this is a one-off, then you should just call lp_build_intrinsic_unary(builder, "llvm.ppc.altivec.vctsxs", ...) If you really need an generic intrinsic helper for iround, then please add a new

Re: [Mesa-dev] [PATCH] llvmpipe: add print for int128

2013-04-02 Thread Jose Fonseca
Looks good to me in principle, but I have some remarks (inline) concerning the implementation. Jose - Original Message - > From: Adhemerval Zanella > > Reviewed-by: Adam Jackson > Signed-off-by: Adhemerval Zanella > --- > src/gallium/auxiliary/gallivm/lp_bld_printf.c | 56 > +++

Re: [Mesa-dev] [PATCH 3/3] gallivm: honor explicit derivatives values for cube maps.

2013-04-03 Thread Jose Fonseca
I only had time to skim through your changes but the series looks great, Roland. If it's not too much trouble, could you please add a piglit test for explicit cube derivatives? Also, please confirm there are no piglit regressions. Jose - Original Message - > From: Roland Scheidegger >

Re: [Mesa-dev] [PATCH 2/5] draw/llvm: use an enum instead of magic numbers

2013-04-03 Thread Jose Fonseca
- Original Message - > I think this was there before and got accidently > removed during a merge. Same code as for the GS > context, which is also using an enum instead of > hardcoded numbers. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/draw/draw_llvm.c |8

Re: [Mesa-dev] [PATCH 3/4] st/wgl: make stw_current_context() non-static

2013-04-04 Thread Jose Fonseca
l/stw_context.h > +++ b/src/gallium/state_trackers/wgl/stw_context.h > @@ -28,7 +28,7 @@ > #ifndef STW_CONTEXT_H > #define STW_CONTEXT_H > > -#include > +#include "stw_icd.h" Alternatively, you could pre-declare "struct stw_context

Re: [Mesa-dev] [PATCH 2/4] util: add debug_memory_check_block(), debug_memory_tag()

2013-04-04 Thread Jose Fonseca
ader(hdr); > + > + if (hdr->magic != DEBUG_MEMORY_MAGIC) { > + debug_printf("%s:%u:%s: bad or corrupted memory %p\n", > + hdr->file, hdr->line, hdr->function, ptr); > + debug_assert(0); > + } > + > + if (ftr->magic != D

Re: [Mesa-dev] [PATCH] tgsi: Add a conditional move inststruction

2013-04-04 Thread Jose Fonseca
- Original Message - > > On 04.04.2013 03:45, Zack Rusin wrote: > > > It's part of SM4 (http://goo.gl/4IpeK). It's also fairly > > > painful to emulate without branching. Most hardware > > > supports it natively and even llvm has a 'select' opcode > > > which can handle it without too muc

Re: [Mesa-dev] [PATCH] tgsi: Add a conditional move inststruction

2013-04-04 Thread Jose Fonseca
- Original Message - > On 04.04.2013 17:01, Jose Fonseca wrote: > > > > - Original Message - > >>> On 04.04.2013 03:45, Zack Rusin wrote: > >>>> It's part of SM4 (http://goo.gl/4IpeK). It's also fairly > >>>> pai

Re: [Mesa-dev] [PATCH] tgsi: Add a conditional move inststruction

2013-04-04 Thread Jose Fonseca
- Original Message - > > > Erm, unsigned < 0 doesn't make sense. > > > > Ah indeed! > > > > > Definitely what the description says: > > > static void > > > micro_ucmp(union tgsi_exec_channel *dst, > > >            const union tgsi_exec_channel *src0, > > >            const union tgsi_ex

Re: [Mesa-dev] [PATCH] tgsi: Add a conditional move inststruction

2013-04-04 Thread Jose Fonseca
There might be some value in renaming UCMP to be MOVC though. I think everybody here can agree that UCMP, though semantically correct, is misleading. Jose - Original Message - > Hah, yea, I'm sorry, that's a good point. So movc is a bitcast to unsigned > followed by ucmp. Alright, I'm w

Re: [Mesa-dev] [PATCH] llvmpipe: implement ucmp

2013-04-04 Thread Jose Fonseca
- Original Message - > and add a test for it > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c | 21 > > .../tests/graw/fragment-shader/frag-ucmp.sh| 11 ++ > 2 files changed, 32 insertions(+) > create mo

Re: [Mesa-dev] [PATCH] gallivm: some minor cube map cleanup

2013-04-04 Thread Jose Fonseca
Looks good Roland. - Original Message - > From: Roland Scheidegger > > The ar_ge_as_at variable was just very very confusing since the condition > was actually the other way around (as_at_ge_ar). So change the condition > (and the selects depending on it) to match the variable name. > Al

Re: [Mesa-dev] [PATCH 2/4] gallium: add PIPE_BIND_COMMAND_BUFFER

2013-04-04 Thread Jose Fonseca
I think that PIPE_BIND_INDIRECT_BUFFER would be more self-descriptive. Or do you envision other uses of such buffer? Jose - Original Message - > Intended for use with GL_ARB_draw_indirect's DRAW_INDIRECT_BUFFER > target or for D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS. > --- > src/gallium/d

Re: [Mesa-dev] [PATCH] st/xlib: add HUD support for xlib/GLX

2013-04-04 Thread Jose Fonseca
y xmdpy, > XMesaBuffer b); > void > xmesa_destroy_st_framebuffer(struct st_framebuffer_iface *stfbi); > > +struct pipe_resource * > +xmesa_get_framebuffer_resource(struct st_framebuffer_iface *stfbi, > + enum st_attachment_type att); > + > void > xmesa_swap_st_framebuffer(struct st_framebuffer_iface *stfbi); > > -- > 1.7.3.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Looks good to me. 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] llvmpipe: Work without sse2 if llvm is new enough

2013-04-04 Thread Jose Fonseca
SSE2 due to LLVM PR6960. */ > if (!util_cpu_caps.has_sse2) > return NULL; > #endif > -- > 1.8.2 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-d

Re: [Mesa-dev] [PATCH] gallivm: fix breakc

2013-04-05 Thread Jose Fonseca
, > + unsigned_cond, > +uint_bld->zero); > > - tmp = lp_build_cmp(&bld_base->base, PIPE_FUNC_NOTEQUAL, > - emit_data->args[0], bld->bld_base.base.zero); > - > - lp_exec_break_condition(&bld->exec_mask, tmp); > + lp_exec_break_condition(&bld->exec_mask, cond); > } > > static void > -- > 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 2/4] gallium: add PIPE_BIND_COMMAND_BUFFER

2013-04-05 Thread Jose Fonseca
I don't feel strongly about it anyway. Can always change it later. Jose - Original Message - > On 04.04.2013 21:53, Christoph Bumiller wrote: > > On 04.04.2013 21:44, Jose Fonseca wrote: > >> I think that PIPE_BIND_INDIRECT_BUFFER would be more self-descriptiv

Re: [Mesa-dev] [PATCH] gallium/u_blitter: fix is_blit_generic_supported() stencil checking

2013-04-05 Thread Jose Fonseca
src->target, src->nr_samples, > + PIPE_BIND_SAMPLER_VIEW)) { > + return FALSE; > +} > } >} > } > -- > 1.7.3.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > Looks good to me. 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 1/4] gallivm: fix unsigned divide and remainder opcodes

2013-04-10 Thread Jose Fonseca
Zack, Series looks great to me. I have no further remark (beyond what Roland already mentioned). Jose - Original Message - > We want to both make sure we never divide by zero to not generate > sigfpe and that divide by zero is guaranteed to return 0x. > Based on José idea. > >

Re: [Mesa-dev] [PATCH 2/2] tgsi/exec: geometry shaders are executed on a single primitive

2013-04-11 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > which means that our execution mask in GS is equal to 1 not 0xf. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/tgsi/tgsi_exec.c | 30 +- > 1 file changed, 17 insertions(+), 13 deletions(-)

Re: [Mesa-dev] [PATCH] tgsi: document and fixup IF and BREAKC instrunctions

2013-04-11 Thread Jose Fonseca
Ah.. This indeed rings a bell. I don't recall the details but I'm pretty sure I was against dual semantics. And the fact that this problem is again showing its ugly head is the proof of it. We really should have two IF opcodes. And the state tracker should choose which one it wants. Jose

Re: [Mesa-dev] [PATCH] tgsi: document and fixup IF and BREAKC instrunctions

2013-04-11 Thread Jose Fonseca
- Original Message - > - Original Message - > > Ah.. This indeed rings a bell. I don't recall the details but I'm pretty > > sure > > I was against dual semantics. And the fact that this problem is again > > showing its ugly head is the proof of it. > > > > We really should have

Re: [Mesa-dev] [PATCH] tgsi: document and fixup IF and BREAKC instrunctions

2013-04-11 Thread Jose Fonseca
- Original Message - > > - Original Message - > > > - Original Message - > > > > Ah.. This indeed rings a bell. I don't recall the details but I'm > > > > pretty > > > > sure > > > > I was against dual semantics. And the fact that this problem is again > > > > showing its

Re: [Mesa-dev] [PATCH 1/2] gallivm/gs: fix the end primitive calls

2013-04-12 Thread Jose Fonseca
tive = FALSE; > - } > + /* implicit end_primitives, needed in case there are any unflushed > + vertices in the cache */ > + end_primitive(NULL, bld_base, NULL); > + >total_emitted_vertices_vec = > LLVMBuildLoad(builder, bld->total_emitted_vertices_vec_ptr, ""); >emitted_prims_vec = > @@ -2767,7 +2797,6 @@ lp_build_tgsi_soa(struct gallivm_state *gallivm, >/* inputs are always indirect with gs */ >bld.indirect_files |= (1 << TGSI_FILE_INPUT); >bld.gs_iface = gs_iface; > - bld.pending_end_primitive = FALSE; >bld.bld_base.emit_fetch_funcs[TGSI_FILE_INPUT] = emit_fetch_gs_input; >bld.bld_base.op_actions[TGSI_OPCODE_EMIT].emit = emit_vertex; >bld.bld_base.op_actions[TGSI_OPCODE_ENDPRIM].emit = end_primitive; > -- > 1.7.10.4 > > Looks good to me. 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] draw: implement pipeline statistics in the draw module

2013-04-12 Thread Jose Fonseca
- Original Message - > This is a basic implementation of the pipeline statistics in the > draw module. The interface is similar to the stream output statistics > and also requires that the callers explicitly enable it. > Included is the implementation of the interface in llvmpipe and > so

Re: [Mesa-dev] [PATCH 00/12] RFC: add support of ARB_separate_shader_object extensions V2

2013-04-12 Thread Jose Fonseca
- Original Message - > From: "gregory" > To: "gregory hainaut" FWIW, your emails BCC'ing the list are a bit of a pain. They manage elude most of my mail filtering rules, and replying-to-all doesn't include the list... Jose > Sent: Friday, April 12, 2013 5:22:02 PM > Subject: [Mesa-dev

Re: [Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color

2013-04-14 Thread Jose Fonseca
- Original Message - > From: Christoph Bumiller > > This is the only sane solution for nv50 and nvc0 (really, trust me), > but since on other hardware the border colour is tightly coupled with > texture state they'd have to undo the swizzle, so I've added a cap. > > The name of the cap c

Re: [Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color

2013-04-14 Thread Jose Fonseca
- Original Message - > Not to mention the sheer insanity, ugliness and emotional pain incurred > when writing that code when it COULD be so easy and simple in the state > tracker where you know that textures and samplers are tightly coupled, > while in gallium I cannot assume that to be th

Re: [Mesa-dev] [PATCH] nv50/ir: handle TGSI_OPCODE_IF(float) properly

2013-04-14 Thread Jose Fonseca
Thanks Christoph. Will do. Jose - Original Message - > You can merge this with the original UIF patch if you want. > --- > .../drivers/nv50/codegen/nv50_ir_from_tgsi.cpp |7 ++- > .../drivers/nv50/codegen/nv50_ir_lowering_nv50.cpp |2 +- > .../drivers/nvc0/codegen/nv50_ir

Re: [Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color

2013-04-14 Thread Jose Fonseca
- Original Message - > On 14.04.2013 13:44, Jose Fonseca wrote: > > - Original Message - > >> From: Christoph Bumiller > >> > >> This is the only sane solution for nv50 and nvc0 (really, trust me), > >> but since on other hardw

Re: [Mesa-dev] [PATCH 2/2] gallium: Desambiguate TGSI_OPCODE_IF.

2013-04-14 Thread Jose Fonseca
- Original Message - > Am 14.04.2013 10:12, schrieb jfons...@vmware.com: > > From: José Fonseca > > > > TGSI_OPCODE_IF condition had two possible interpretations: > > > > - src.x != 0.0f > > > > - Mesa statetracker when PIPE_SHADER_CAP_INTEGERS was false either for > > vertex and

Re: [Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color

2013-04-15 Thread Jose Fonseca
- Original Message - > On 14.04.2013 15:34, Jose Fonseca wrote: > > > > - Original Message - > >> On 14.04.2013 13:44, Jose Fonseca wrote: > >>> - Original Message - > >>>> From: Christoph Bumiller > >>>&g

Re: [Mesa-dev] [PATCH] gallivm: fix small but severe bug in handling multiple lod level strides

2013-04-15 Thread Jose Fonseca
der, level, indexi, ""); > stride1 = LLVMBuildGEP(builder, stride_array, indexes, 2, ""); > stride1 = LLVMBuildLoad(builder, stride1, ""); > -- > 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 2/2] gallium: Desambiguate TGSI_OPCODE_IF.

2013-04-16 Thread Jose Fonseca
- Original Message - > The R600 code looks good. > > Marek > > When I rebased on top of master, I had a conflict on r600. Below is how I resolved. Please confirm you're OK with it. Jose diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c inde

Re: [Mesa-dev] [PATCH] st/mesa: optionally apply texture swizzle to border color v2

2013-04-16 Thread Jose Fonseca
Thanks for the update. Looks good to me FWIW. Jose - Original Message - > From: Christoph Bumiller > > This is the only sane solution for nv50 and nvc0 (really, trust me), > but since on other hardware the border colour is tightly coupled with > texture state they'd have to undo the sw

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Jose Fonseca
- Original Message - > >> Those are just ideas.  I'm open to discussion. > > > > The driver is disabled by default and needs to be enabled via > > --with-gallium-drivers=i965. > > I think a warning + maybe something like > --with-gallium-drivers=i965g-unofficial might work, If not, then I

Re: [Mesa-dev] [PATCH 2/2] gallium: Desambiguate TGSI_OPCODE_IF.

2013-04-16 Thread Jose Fonseca
- Original Message - > On Son, 2013-04-14 at 09:12 +0100, jfons...@vmware.com wrote: > > > > diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c > > b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c > > index 314c963..dfc7cbc 100644 > > --- a/src/gallium/drivers/radeon/r

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Jose Fonseca
- Original Message - > On Wed, Apr 17, 2013 at 8:09 AM, Marek Olšák wrote: > > On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu wrote: > >> > >> On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner wrote: > >>> > >>> I think everything Marek said was correct. If you could extend Gallium > >>> to co

Re: [Mesa-dev] [PATCH 8/8] draw/gs: make sure geometry shaders don't overflow

2013-04-17 Thread Jose Fonseca
Series looks good to me. Reviewed-by: Jose Fonseca - Original Message - > The specification says that the geometry shader should exit if the > number of emitted vertices is bigger or equal to max_output_vertices and > we can't do that because we're running in the So

Re: [Mesa-dev] [PATCH] gallivm: JIT symbol resolution with linux perf.

2013-04-17 Thread Jose Fonseca
t > > > > diff --git a/bin/perf-annotate-jit b/bin/perf-annotate-jit > > new file mode 100755 > > index 000..7ebc965 > > --- /dev/null > > +++ b/bin/perf-annotate-jit > > @@ -0,0 +1,240 @@ > > +#!/usr/bin/env python > > +# > > +# Copyrig

Re: [Mesa-dev] [PATCH 1/2] util/prim: fix decomposed counts for adjacency primitives

2013-04-19 Thread Jose Fonseca
IPE_PRIM_TRIANGLES_ADJACENCY: > - return vertices / 3; > + return vertices / 6; > case PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY: > - return (vertices > 2) ? vertices - 2 : 0; > + return (vertices > 5) ? 1 + (vertices - 6)/2 : 0; > case PIPE_PRIM_QUADS: >

Re: [Mesa-dev] [PATCH 2/5] gallium: document breakc and switch/case/default/endswitch

2013-04-19 Thread Jose Fonseca
; + > + This represents the default case in the switch, which is taken if no > other > + case matches. > + > + > +.. opcode:: ENDSWITCH - End of switch > + > + Ends a switch expression. > + > + > .. opcode:: PUSHA - Push Address Register On Stack > >p

Re: [Mesa-dev] [PATCH 3/3] gallium/cso: fix sampler / sampler_view counts

2013-11-26 Thread Jose Fonseca
Series looks good to me. Thanks for the cleanup. Jose - Original Message - > From: Roland Scheidegger > > Now that it is possible to query drivers for the max sampler view it should > be safe to increase this without crashing. > Not entirely convinced this really works correctly though

Re: [Mesa-dev] [PATCH] mesa/llvmpipe: add fake MSAA support

2013-11-27 Thread Jose Fonseca
Looks great. Thanks for doing this! Future is now. Jose - Original Message - > This adds a gallium cap that allows us to fake GL3.0 by > not exposing MSAA on sw rendering. It also forces the > extra extensions needed for GL3.2. Along with a patch to > raise the GLSL version in llvmpipe th

Re: [Mesa-dev] Feasibility of KHR_gl_texture_cubemap_image in mesa/gallium

2013-11-27 Thread Jose Fonseca
This should be possible with: struct pipe_resource * (*resource_from_handle)(struct pipe_screen *, const struct pipe_resource *templat, struct winsys_handle *handle); Nothing impedes this to w

Re: [Mesa-dev] [PATCH] drisw/gallium/llvmpipe: add MESA_copy_sub_buffer support

2013-11-28 Thread Jose Fonseca
- Original Message - > This patches add MESA_copy_sub_buffer support to the dri sw loader and > then to gallium state tracker, llvmpipe, softpipe and other bits. > > It reuses the dri1 driver extension interface, and it updates the swrast > loader interface for a new putimage which can t

Re: [Mesa-dev] [PATCH 1/2] draw: fix vbuf caching of vertices with inject front face

2013-12-10 Thread Jose Fonseca
- Original Message - > Caching in the vbuf module meant that once a vertex has been > emitted it was cached, but it's possible for a vertex at the > same location to be emitted again, but this time with a different > front-face semantic. Caching was causing the first version of the > vertex

Re: [Mesa-dev] [PATCH] drisw/gallium/llvmpipe: add MESA_copy_sub_buffer support (v2)

2013-12-10 Thread Jose Fonseca
Sorry for the delay. Thanks for the update. Please update the other sw_winsys implementations in src/gallium/winsys/sw too. I think that updating the prototype and ignoring the new parameter should be fine. Otherwise looks good. Jose - Original Message - > This patches add MESA_cop

Re: [Mesa-dev] [PATCH 1/9] st/mesa: always prefer pipe->clear over clear_with_quad

2013-12-13 Thread Jose Fonseca
This is worse for SW renderers... Jose - Original Message - > From: Marek Olšák > > --- > src/mesa/state_tracker/st_cb_clear.c | 12 +++- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/src/mesa/state_tracker/st_cb_clear.c > b/src/mesa/state_tracker/st_cb_cl

Re: [Mesa-dev] [PATCH 1/9] st/mesa: always prefer pipe->clear over clear_with_quad

2013-12-13 Thread Jose Fonseca
arek > > On Fri, Dec 13, 2013 at 3:21 PM, Jose Fonseca wrote: > > This is worse for SW renderers... > > > > Jose > > > > - Original Message - > >> From: Marek Olšák > >> > >> --- > >> src/mesa/state_tracker/st_cb_

Re: [Mesa-dev] [PATCH] llvmpipe: get rid of barycentric calculation of a0

2013-12-13 Thread Jose Fonseca
args->e01o = lp_build_broadcast_scalar(&bld, LLVMBuildFSub(b, tmp0, > tmp1, "e01o")); > - tmp1 = LLVMBuildShuffleVector(b, p1p2, p1p2, shuf1u3u, ""); > - tmp0 = LLVMBuildFSub(b, p1p2, tmp1, "e12o20o"); > - args->e12o = lp_build_extract_broadcast(gallivm, typef4, typef4, tmp0, > zeroi); > - args->e20o = lp_build_extract_broadcast(gallivm, typef4, typef4, tmp0, > - lp_build_const_int32(gallivm, > 2)); > - } > - > args->dy20_ooa = lp_build_extract_broadcast(gallivm, typef4, typef4, > dxy20, onei); > args->dy01_ooa = lp_build_extract_broadcast(gallivm, typef4, typef4, > dxy01, onei); > > -- > 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 1/9] st/mesa: always prefer pipe->clear over clear_with_quad

2013-12-18 Thread Jose Fonseca
The only way to hit both > pipe->clear and clear_with_quad for depth and stencil, respectively, > is to have a partial stencil writemask. > > Marek > > On Fri, Dec 13, 2013 at 5:46 PM, Jose Fonseca wrote: > > > > So, if this provides a significant performance difference

Re: [Mesa-dev] [PATCH] llvmpipe: fix possible constant buffer overflow

2013-12-19 Thread Jose Fonseca
Looks great to me. - Original Message - > It's possible to bind a smaller buffer as a constant buffer, than > what the shader actually uses/requires. This could cause nasty > crashes. This patch adds the architecture to pass the maximum > allowable constant buffer index to the jit so let i

Re: [Mesa-dev] [PATCH] glsl: rename min(), max() functions to fix MSVC build

2014-01-07 Thread Jose Fonseca
- Original Message - > On Tue, Jan 7, 2014 at 3:59 PM, Brian Paul wrote: > > On 01/06/2014 05:22 PM, Erik Faye-Lund wrote: > >> > >> On Tue, Jan 7, 2014 at 12:12 AM, Brian Paul wrote: > >>> > >>> Evidently, there's some other definition of "min" and "max" that > >>> causes MSVC to choke o

Re: [Mesa-dev] [PATCH 2/2] demos/pixeltest: Adapt the example for points too.

2014-01-08 Thread Jose Fonseca
- Original Message - > On Wed, Jan 8, 2014 at 6:30 PM, wrote: > > From: José Fonseca > > > > This example is very useful to understand the rasterization of lines. > > And with this change, points too. > > > > Adding a key / command-line option to switch modes is left for a future > > o

Re: [Mesa-dev] [PATCH] llvmpipe: Honour pipe_rasterizer::point_quad_rasterization.

2014-01-08 Thread Jose Fonseca
- Original Message - > On Wed, Jan 8, 2014 at 6:27 PM, wrote: > > } > > - > > + > > + if (0) { > > + debug_printf(" bbox: (%i, %i) - (%i, %i)\n", > > + bbox.x0, bbox.y0, > > + bbox.x1, bbox.y1); > > + } > > + > > if (!u_rect_test_inter

Re: [Mesa-dev] [PATCH] llvmpipe: Honour pipe_rasterizer::point_quad_rasterization.

2014-01-08 Thread Jose Fonseca
- Original Message - > Am 08.01.2014 18:27, schrieb jfons...@vmware.com: > > From: José Fonseca > > > > Commit eda21d2a3010d9fc5a68b55a843c5e44b2abf8dd fixed the rasterization > > of points for Direct3D but ended up breaking the rasterization of OpenGL > > non-sprite points, in particul

Re: [Mesa-dev] [PATCH] mesa: add missing SNORM formats in _mesa_base_fbo_format()

2014-01-09 Thread Jose Fonseca
ons.EXT_texture_snorm > + ? GL_LUMINANCE_ALPHA : 0; > + case GL_INTENSITY_SNORM: > + case GL_INTENSITY8_SNORM: > + case GL_INTENSITY16_SNORM: > + return _mesa_is_desktop_gl(ctx) && ctx->Extensions.EXT_texture_snorm > + ? GL_INTENSITY : 0; > + > cas

Re: [Mesa-dev] Mesa (master): mesa: replace ctx->Const.{Vertex, Fragment, Geomtery}Program with an array.

2014-01-09 Thread Jose Fonseca
- Original Message - > Module: Mesa > Branch: master > Commit: 84732a982c3eeaca2e2809532c8422dc5f7045c1 > URL: > https://urldefense.proofpoint.com/v1/url?u=http://cgit.freedesktop.org/mesa/mesa/commit/?id%3D84732a982c3eeaca2e2809532c8422dc5f7045c1&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr

Re: [Mesa-dev] [PATCH 7/7] c11: Make TIME_UTC a conditional macro.

2014-01-09 Thread Jose Fonseca
This series is pretty much what I proposed several months ago, rebased on top of master, with minor if any tweaks. Still to do is remove the deprecated abstractions (which now are mere wrappers of the c11 ones). That said, this series is already useful as is, not only because of the code de-du

Re: [Mesa-dev] [PATCH] mesa: rename MESA format names to have the same names as PIPE formats

2014-01-14 Thread Jose Fonseca
- Original Message - > The predominant feedback on this adventure has been to make the MESA_FORMATs > match the PIPE, or gallium formats but every journey I've made down that > path has been fraught with peril. There are some cases where PIPE_FORMATs > are even more confusing then MESA_FORM

Re: [Mesa-dev] [PATCH] llvmpipe: handle NULL color buffer pointers

2014-01-16 Thread Jose Fonseca
Looks good AFAICT. Thanks Brian. Jose - Original Message - > Fixes regression from 9baa45f78b8ca7d66280e36009b6a685055d7cd6 > > v2: incorporate a few small changes suggested by Roland. > --- > src/gallium/drivers/llvmpipe/lp_rast.c | 62 --- > src/gallium/drivers/llvmpipe

Re: [Mesa-dev] [PATCH] llvmpipe: fix large point rasterization with point_quad_rasterization

2014-01-17 Thread Jose Fonseca
nap(v0[0][1]) - adj; >   > -      int int_width = fixed_width >> FIXED_ORDER; > +      int int_width; > +      /* Point size as fixed point integer. For GL legacy points > +       * the point size is always a whole integer. > +       */ > +      fixed_width = MAX2(FIXED_ONE

Re: [Mesa-dev] [PATCH 2/2] svga: fix crash when clearing null color buffer

2014-01-17 Thread Jose Fonseca
mailing list > mesa-dev@lists.freedesktop.org > https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=OUomIkBN13xAFvxxWHODUEiG1q28%2B7LMvw3w3IuPljQ%3D%0A&

Re: [Mesa-dev] [PATCH 2/2] s/Tungsten Graphics/VMware/

2014-01-17 Thread Jose Fonseca
- Original Message - > On 01/17/2014 12:56 PM, Ian Romanick wrote: > > On 01/17/2014 08:33 AM, jfons...@vmware.com wrote: > >> diff --git a/src/mesa/drivers/dri/r200/r200_context.c > >> b/src/mesa/drivers/dri/r200/r200_context.c > >> index f82424b..f613e56 100644 > >> --- a/src/mesa/drive

Re: [Mesa-dev] [PATCH] draw: clean up d3d style point clipping

2014-01-20 Thread Jose Fonseca
Looks good to me AFAICT. Jose - Original Message - > From: Roland Scheidegger > > Instead of skipping x/y clipping completely if there's point_tri_clip points > use guard band clipping. This should be easier (previously we could not > disable > generating the x/y bits in the clip mask f

Re: [Mesa-dev] [PATCH] draw: fix incorrect vertex size computation in LLVM drawing code

2014-01-20 Thread Jose Fonseca
Good catch Brian. Change looks good to me AFAICT. We do need more this sort of assertions in the draw module. I never fail to get surprised at how intricate and sensitive draw module is -- mostly due the fact that it reaches out to the upstream gallium interface from within the driver. I do h

Re: [Mesa-dev] [PATCH 3/3] svga: implement TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS

2014-01-20 Thread Jose Fonseca
Series looks great to me. Jose - Original Message - > Fixes several colorbuffer tests, including piglit "fbo-drawbuffers-none" > for "gl_FragColor" and "glDrawPixels" cases. > > v2: rework patch to only avoid creating extra shader variants when > TGSI_PROPERTY_FS_COLOR0_WRITES_ALL_CBUFS

Re: [Mesa-dev] [PATCH] mesa: add missing TYPE_DOUBLEN_2 cases in get.c

2014-01-21 Thread Jose Fonseca
t; -- > 1.7.10.4 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOc

Re: [Mesa-dev] [PATCH 6/6] svga: minor code movement in svga_tgsi_insn.c

2014-01-23 Thread Jose Fonseca
Only skimmed through but series looks good to me. Jose - Original Message - > --- > src/gallium/drivers/svga/svga_tgsi_insn.c | 94 > ++--- > 1 file changed, 47 insertions(+), 47 deletions(-) > > diff --git a/src/gallium/drivers/svga/svga_tgsi_insn.c > b/src/g

Re: [Mesa-dev] [PATCH 7/7] c11: Make TIME_UTC a conditional macro.

2014-01-23 Thread Jose Fonseca
- Original Message - > On Thu, Jan 09, 2014 at 11:32:10AM -0800, Jose Fonseca wrote: > > This series is pretty much what I proposed several months ago, rebased on > > top of master, with minor if any tweaks. > > > > Still to do is remove the deprecated abstr

Re: [Mesa-dev] [PATCH] svga: fix PS output register setup regression

2014-01-23 Thread Jose Fonseca
/listinfo/mesa-dev&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=D2VWSJToZW4odPM75DA3MQ2BLfdEWhzwNh39Und8Xlo%3D%0A&s=480298215bf1be9132dfac454c18e51c19937d6a1ad88091e36d3b5e71b044b8 > Reviewed-by: Jose Fonseca ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Mesa (master): c11: Do not use pthread_mutex_timedlock on NetBSD.

2014-01-25 Thread Jose Fonseca
mmit mailing list > mesa-com...@lists.freedesktop.org > https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-commit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=g8fFFoc2clMzXlUCVio0faQ7npLyyWmzG2X93CYOm

Re: [Mesa-dev] Mesa (master): c11: Do not use pthread_mutex_timedlock on NetBSD.

2014-01-25 Thread Jose Fonseca
.org > > https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/mesa-commit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=g8fFFoc2clMzXlUCVio0faQ7npLyyWmzG2X93CYOm9M%3D%0A&s=82b7edeed1e63abc344f02ee3a3d4870f17e9fa90c1b8ac8b34c8d1f1570f674 > > > > Reviewed-by: Jose Fonseca > Doh. It's a commit message not a review request! *must drink a cup of coffee* Jose ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] can we have gl_framebuffer _NumColorDrawBuffers = 1 and all the entries in the array NULL

2014-01-28 Thread Jose Fonseca
If drivers has issues dealing with NULL cbufs, then we could have the state trackers using dummy rendertargets. But probably it's more efficent to handle in the pipe drivers. My concern is that this ends up being a rare condition in practice, and that pipe drivers end up having a lot of bugs h

Re: [Mesa-dev] [PATCH 03/16] llvmpipe: Use alignment of 64 instead of 16 for buffer allocation

2014-01-28 Thread Jose Fonseca
gt; static void > alloc_image_data(struct llvmpipe_resource *lpr) > { > - uint alignment = MAX2(16, util_cpu_caps.cacheline); > + uint alignment = MAX2(64, util_cpu_caps.cacheline); > uint level; > uint offset = 0; > > -- > 1.8.1.4 > > ____

Re: [Mesa-dev] [PATCH 0/6] Some glapi clean-up releated to GLES

2014-04-02 Thread Jose Fonseca
- Original Message - > Tomorrow or Friday I'm going to send out the last of the > GL_ARB_separate_shader_objects patches. Shortly after that, I will send > out patches to enable GL_EXT_separate_shader_objects on GLES. This EXT > is the GLES subset of the ARB extension. > > In preparing f

Re: [Mesa-dev] [PATCH] mesa/st: Fix pipe_framebuffer_state::height for PIPE_TEXTURE_1D_ARRAY.

2014-04-03 Thread Jose Fonseca
- Original Message - > On 04/03/2014 08:57 AM, jfons...@vmware.com wrote: > > From: José Fonseca > > > > This prevents buffer overflow w/ llvmpipe when running piglit > > > >bin/gl-3.2-layered-rendering-clear-color-all-types 1d_array single_level > >-fbo -auto > > --- > > src/m

Re: [Mesa-dev] [PATCH 4/4] llvmpipe: remove no-op checks in sampler, sampler_view functions

2014-04-03 Thread Jose Fonseca
- Original Message - > Am 03.04.2014 17:56, schrieb Brian Paul: > > --- > > src/gallium/drivers/llvmpipe/lp_state_sampler.c | 14 -- > > 1 file changed, 14 deletions(-) > > > > diff --git a/src/gallium/drivers/llvmpipe/lp_state_sampler.c > > b/src/gallium/drivers/llvmpipe/

Re: [Mesa-dev] Gallium docs online builds

2014-04-03 Thread Jose Fonseca
Pretty neat! - Original Message - > Hi everyone, > > I've set up a readthedocs.org build to point at the gallium docs: > > https://urldefense.proofpoint.com/v1/url?u=http://gallium.readthedocs.org/en/latest/&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDz

Re: [Mesa-dev] [PATCH] st/mesa: fix sampler_view REALLOC/FREE macro mix-up

2014-04-10 Thread Jose Fonseca
To prevent this to ocurr again in the future we should be probably using os_malloc/os_free and friends instead of the overloaded MALLOC/FREE/etc macros. We should probably kill MALLOC/FREE completely. Jose - Original Message - > We were using REALLOC() from u_memory.h but FREE() from im

Re: [Mesa-dev] [PATCH 0/7] translate_sse fixes

2014-04-16 Thread Jose Fonseca
This is not a review but just a side remark:  I strongly believe that in the medium/long term translate_sse and rtasm modules should be abandoned, and replaced with a new translate_llvm.c module.  All the functionality for doing so is already in draw/gallivm modules, it's really just a re-factor

Re: [Mesa-dev] Mesa (master): Revert "scons: Enable building through Clang Static Analyzer."

2014-04-16 Thread Jose Fonseca
- Original Message - > On 04/16/2014 06:18 AM, Jose Fonseca wrote: > > Module: Mesa > > Branch: master > > Commit: e3c58cdfd97d390cb4c1a02852ab0417bd68c861 > > URL: > > https://urldefense.proofpoint.com/v1/url?u=http://cgit.fre

Re: [Mesa-dev] [PATCH 2/2] mesa/st: Fix pipe_framebuffer_state::height for PIPE_TEXTURE_1D_ARRAY.

2014-04-23 Thread Jose Fonseca
Thanks for the review. - Original Message - > On 04/23/2014 07:55 AM, jfons...@vmware.com wrote: > > From: José Fonseca > > > > This prevents buffer overflow w/ llvmpipe when running piglit > > > >bin/gl-3.2-layered-rendering-clear-color-all-types 1d_array single_level > >-fbo -au

Re: [Mesa-dev] [PATCH 0/5] util: Rework endian handling in python code

2014-04-23 Thread Jose Fonseca
Richard, Michel, Apologies for the long silence. I flagged this thread as worth following, but I failed to noticed the RFC to me. I glanced over it and the series looks good to me AFAICT. I agree that it is a better to defer the endianess to C-preprocessing time. Jose - Original Message

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Jose Fonseca
- Original Message - > On 24.04.2014 03:12, Jose Fonseca wrote: > > Module: Mesa > > Branch: master > > Commit: fd92346c53ed32709c7b56ce58fb9c9bf43ce9a8 > > URL: > > https://urldefense.proofpoint.com/v1/url?u=http://cgit.fre

Re: [Mesa-dev] [PATCH 4/4] swrast: move texture_slices() calls out of loops

2014-04-24 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > --- > src/mesa/swrast/s_texture.c | 12 > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/swrast/s_texture.c b/src/mesa/swrast/s_texture.c > index 9273e94..5fd80ca 100644 > --- a/src/mesa/swras

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Jose Fonseca
; Marek > > On Thu, Apr 24, 2014 at 1:31 PM, Jose Fonseca wrote: > > > > > > - Original Message - > >> On 24.04.2014 03:12, Jose Fonseca wrote: > >> > Module: Mesa > >> > Branch: master > >> > Commit: fd92346c53ed3270

Re: [Mesa-dev] Mesa (master): mesa/st: Fix pipe_framebuffer_state:: height for PIPE_TEXTURE_1D_ARRAY.

2014-04-24 Thread Jose Fonseca
Oop. Please ignore that. I forgot to specify the filename when producing the diff. Jose - Original Message - > The patch fixes the issue, but it also contains some unrelated drisw changes. > > Marek > > On Thu, Apr 24, 2014 at 2:37 PM, Jose Fonseca wrote: > > No

Re: [Mesa-dev] [PATCH] draw/llvm: reduce memory usage

2014-04-24 Thread Jose Fonseca
Looks great to me. Thanks Zack. Jose - Original Message - > Lets make draw_get_option_use_llvm function available unconditionally > and use it to avoid useless allocations when LLVM paths are active. > TGSI machine is never used when we're using LLVM. > > Signed-off-by: Zack Rusin > ---

Re: [Mesa-dev] [PATCH 0/5] util: Rework endian handling in python code

2014-04-28 Thread Jose Fonseca
Pushed. Jose - Original Message - > NP, thanks for the review Jose. Please could someone commit the > series for me? I'll follow up with patches to fix other formats for BE. > > Thanks, > Richard > > Jose Fonseca writes: > > Richard, Michel, > &

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