Re: [Mesa-dev] [PATCH] gallium: allow setting of the internal stream output offset

2014-03-07 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > D3D10 allows setting of the internal offset of a buffer, which is > in general only incremented via actual stream output writes. By > allowing setting of the internal offset draw_auto is capable > of rendering from buffers which have not been

Re: [Mesa-dev] [PATCH] st/mesa: only mark framebuffer as sRGB capable if Mesa supports the format

2014-03-07 Thread Jose Fonseca
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=RJ4H8Fodtw4bz9feDaZf0Kmfgb1mRzAes7QYuQuJBIg%3D%0A&s=e1505a767e53dc4a2

Re: [Mesa-dev] [PATCH 4/4] mesa: stop aliasing ARB and core shader API functions

2014-03-10 Thread Jose Fonseca
How come? GLhandleARB is still a GLuint on Linux. And calling one vs the other works just as well. How does merely un-aliasing the entrypoints break anything? Jose - Original Message - > No way. This will break existing applications on Linux. > > On 03/08/2014 05:10 PM, Brian Paul wr

Re: [Mesa-dev] [PATCH 4/4] mesa: stop aliasing ARB and core shader API functions

2014-03-10 Thread Jose Fonseca
- Original Message - > On 03/10/2014 03:09 PM, Ian Romanick wrote: > > On 03/10/2014 02:06 PM, Ian Romanick wrote: > >> No way. This will break existing applications on Linux. > > How so? Before, for example, we had glCompileShaderARB(GLhandleARB) and > glCompileShader(GLuint) libGL en

Re: [Mesa-dev] [PATCH 4/4] mesa: stop aliasing ARB and core shader API functions

2014-03-10 Thread Jose Fonseca
- Original Message - > On 03/10/2014 02:52 PM, Jose Fonseca wrote: > > > > > > - Original Message - > >> On 03/10/2014 03:09 PM, Ian Romanick wrote: > >>> On 03/10/2014 02:06 PM, Ian Romanick wrote: > >>>> No way. This wi

Re: [Mesa-dev] [PATCH] c11/threads: don't include assert.h if the assert macro is already defined

2014-03-19 Thread Jose Fonseca
Looks good. This is yet another thing that would benefit if we moved things like u_debug.h's assert to a place it can be used everywhere -- the "shared runtime" idea. Jose - Original Message - > In the gallium code, the assert() macro could come from either the > system's assert.h file

Re: [Mesa-dev] [PATCH 2/2] llvmpipe: add support for b5g6r5_srgb

2014-03-20 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > From: Roland Scheidegger > > The conversion code for srgb was tuned for n x 4x8bit AoS -> 4 x nxfloat SoA > (and vice versa), fix this to handle also 16bit 565-style srgb formats. > Still not really all that generic, things like r10g1

Re: [Mesa-dev] [PATCH 1/2] draw: Duplicate TGSI tokens in draw_pipe_pstipple module.

2014-03-24 Thread Jose Fonseca
- Original Message - > On 03/24/2014 09:31 AM, jfons...@vmware.com wrote: > > From: José Fonseca > > > > As done in draw_pipe_aaline and draw_pipe_aapoint modules. > > --- > > src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) >

Re: [Mesa-dev] [PATCH] gallivm: fix no-op n:n lp_build_resize()

2014-03-25 Thread Jose Fonseca
assert(num_dsts == 1); > + /* "Conversion" must be N:N */ > + assert(num_srcs == num_dsts); > > - tmp[0] = src[0]; > + for(i = 0; i < num_dsts; ++i) > + tmp[i] = src[i]; > } > > for(i = 0; i < num_dsts; ++i) > -- > 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] mapi/glapi: Use ElementTree instead of libxml2.

2014-03-26 Thread Jose Fonseca
- Original Message - > On 03/25/2014 09:34 AM, jfons...@vmware.com wrote: > > From: José Fonseca > > > > It is quite hard to meet the dependency of the libxml2 python bindings > > out side Linux, and in particularly on MacOSX; whereas ElementTree is > > part of Python's standard library.

Re: [Mesa-dev] [PATCH 2/2] llvmpipe: Simplify vertex and geometry shaders.

2014-03-26 Thread Jose Fonseca
I see the crashes you're referring to. I don't quite understand why though: concerning the geometry shader, other than cosmetic changes, in theory I should just have replaced a null/non-null `tokens` pointer with a boolean `no_tokens`, though obviously I missed something. I should also had bro

Re: [Mesa-dev] [PATCH 3/3] svga: add work-around for Sauerbraten Z fighting issue

2014-03-26 Thread Jose Fonseca
gt;state.sw.ve_format[i] == SVGA3D_DECLTYPE_MAX) { > /* Unsupported format - use software fetch */ > need_swvfetch = TRUE; > -- > 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=NMr9uy2iTjWVixC0wOcYCWEIYhfo80qKwRgdodpoDzA%3D%0A&m=bUFb65CGw9qnIKJ%2B4A%2FetCzS4sUJZr5stYFdvN%2FmhNM%3D%0A&s=ebed37f07052b55f47dc46ced85bbcb2defd223ee03a071dfc085e9b550777dc > Series is 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] llvmpipe: Simplify vertex and geometry shaders.

2014-03-26 Thread Jose Fonseca
- Original Message - > > I see the crashes you're referring to. > > > > I don't quite understand why though: concerning the geometry shader, other > > than cosmetic changes, in theory I should just have replaced a > > null/non-null > > `tokens` pointer with a boolean `no_tokens`, though ob

Re: [Mesa-dev] [PATCH 2/2] draw/llvm: improve debugging output a bit

2014-03-26 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > it's useful to know what the llvmbuildstore arguments are going to > be before executing it because it can crash and make sure to > print out the inputs only if we're not generating a gs because > it fetches inputs differently. > > Sig

Re: [Mesa-dev] [PATCH] mesa: fix glMultiDrawArrays inside a display list

2014-03-27 Thread Jose Fonseca
LGTM. Jose - Original Message - > The underlying glDrawArrays() calls weren't getting compiled into > the display list. We simply need to use the current dispatch table > so the CALL_DrawArrays() is routed to the display list save function. > > This patch also fixes glMultiModeDrawArray

Re: [Mesa-dev] [PATCHv2 1/3] gallium: add interface to clear buffers

2014-03-27 Thread Jose Fonseca
- Original Message - > On Wed, Mar 26, 2014 at 4:30 AM, Roland Scheidegger > wrote: > > Am 26.03.2014 03:29, schrieb Marek Olšák: > >> My reasoning was that it would be better to specify a raw clear value > >> and clear value size for buffers, which are always untyped, and > >> pipe_colo

Re: [Mesa-dev] [PATCH] gallium: add include path to fix building of pipe-loader code

2014-12-01 Thread Jose Fonseca
Reviewed-by: Jose Fonseca On 01/12/14 20:37, Brian Paul wrote: The pipe-loader code wasn't finding util/u_atomic.h --- src/gallium/auxiliary/pipe-loader/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/pipe-loader/Makefile.am b/src/gallium/auxi

Re: [Mesa-dev] [PATCH 4/4] draw: use the prim type from prim_info not emit in passthrough emit

2014-12-02 Thread Jose Fonseca
Series sort of sounds sensible but it's really outside my expertise. Zack would be a much better reviewer. This should be thoroughly tested too. Jose On 02/12/14 01:31, srol...@vmware.com wrote: From: Roland Scheidegger The prim assembler may change the prim type when injecting prim ids now

Re: [Mesa-dev] [PATCH] mesa: fix height error check for 1D array textures

2014-12-02 Thread Jose Fonseca
LGTM. On 02/12/14 16:43, Brian Paul wrote: height=0 is legal for 1D array textures (as height=0 is legal for I think you mean "as depth=0 is legal for 2D arrays" 2D arrays). Fixes new piglit ext_texture_array-errors test. Cc: "10.3 10.4" --- src/mesa/main/teximage.c | 2 +- 1 file chan

[Mesa-dev] [PATCH] mesa: Ensure stack is realigned on x86.

2014-12-02 Thread Jose Fonseca
From: José Fonseca Nowadays GCC assumes stack pointer is 16-byte aligned even on 32-bits, but that is an assumption OpenGL drivers (or any dynamic library for that matter) can affort to make as there are many closed- and open- source application binaries out there that only assume 4-byte stack al

Re: [Mesa-dev] [PATCH] mesa: Ensure stack is realigned on x86.

2014-12-02 Thread Jose Fonseca
On 02/12/14 21:10, Brian Paul wrote: On 12/02/2014 01:27 PM, Jose Fonseca wrote: From: José Fonseca Nowadays GCC assumes stack pointer is 16-byte aligned even on 32-bits, but that is an assumption OpenGL drivers (or any dynamic library for that matter) can affort to make as there are many

Re: [Mesa-dev] [PATCH] gallivm: Fix build with LLVM 3.6

2014-12-03 Thread Jose Fonseca
On 03/12/14 04:50, Tom Stellard wrote: As of r223183 EngineBuilder::setMCJITMemoryManager() takes a unique_ptr. --- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gall

Re: [Mesa-dev] [PATCH] llvmpipe: decrease MAX_SCENES from 2 to 1

2014-12-03 Thread Jose Fonseca
On 03/12/14 02:59, srol...@vmware.com wrote: From: Roland Scheidegger Multiple scenes per context are meant to be used so a new scene can be built while another one is processed in rasterization. However, quite surprisingly, this does not actually work (and according to git log, possibly never

Re: [Mesa-dev] [PATCH] radeonsi: implement legacy RCP behavior to fix Unreal engine demos

2014-12-04 Thread Jose Fonseca
I'm also concerned this sort of ad-hoc re-interpretation of opcode semantics will come to bytes us later, as different state trackers might want different semantics. I think we might need to redefine TGSI_OPCODE_RCP opcode or introduce a TGSI_OPCODE_RCP_LEGACY opcode. Also, do we know exactl

Re: [Mesa-dev] [PATCH] radeonsi: implement legacy RCP behavior to fix Unreal engine demos

2014-12-04 Thread Jose Fonseca
I certainly don't want to deter you from pushing a quick fix now. If possible I'd just like any further information you might have collected while debugging this issue in the hope we can figure out a more comprehensive solution should be. Because I'm sure other drivers (including VMware's svg

Re: [Mesa-dev] [PATCH] mesa/st: don't use CMP / I2F for conditional assignments with native integers

2014-12-05 Thread Jose Fonseca
Looks good AFAICT. But I think we should probably swap the operands only once, in one place, instead of having two branches for switch_order. Jose On 04/12/14 23:25, srol...@vmware.com wrote: From: Roland Scheidegger The original idea was to optimize away the condition by integrating it di

Re: [Mesa-dev] [PATCH 3/3] util/primconvert: take ib offset into account

2014-12-05 Thread Jose Fonseca
On 05/12/14 00:01, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin Cc: "10.4 10.3" --- src/gallium/auxiliary/indices/u_primconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.

[Mesa-dev] [PATCH] util/primconvert: Avoid point arithmetic; apply offset on all cases.

2014-12-05 Thread Jose Fonseca
From: José Fonseca Matches what u_vbuf_get_minmax_index() does. --- src/gallium/auxiliary/indices/u_primconvert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c index 4632781..eb

Re: [Mesa-dev] [PATCH 3/3] util/primconvert: take ib offset into account

2014-12-05 Thread Jose Fonseca
On 05/12/14 14:12, Ilia Mirkin wrote: On Fri, Dec 5, 2014 at 9:10 AM, Jose Fonseca wrote: On 05/12/14 00:01, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin Cc: "10.4 10.3" --- src/gallium/auxiliary/indices/u_primconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [Mesa-dev] [PATCH] util/primconvert: Avoid point arithmetic; apply offset on all cases.

2014-12-05 Thread Jose Fonseca
On 05/12/14 14:18, Ilia Mirkin wrote: On Fri, Dec 5, 2014 at 9:16 AM, Jose Fonseca wrote: From: José Fonseca Matches what u_vbuf_get_minmax_index() does. Hm, nouveau nv50 (and probably nvc0) does: if (ib->buffer) { nv50->idxbuf.offset = ib->offset;

Re: [Mesa-dev] [PATCH] mesa/st: don't use CMP / I2F for conditional assignments with native integers

2014-12-05 Thread Jose Fonseca
default, so if you prefer that they can easily be killed, and the "if (expr->operation == ir_binop_nequal)" should have been a ("else if (expr->operation == ir_binop_nequal)" indeed.) Roland Am 05.12.2014 um 13:01 schrieb Jose Fonseca: Looks good AFAICT. But I think w

Re: [Mesa-dev] [PATCH V2] mesa: use build flag to ensure stack is realigned on x86

2014-12-08 Thread Jose Fonseca
I'm not particularly knowledgeable about autoconf/make, but it looks correct AFAICT. Thanks for doing this. I think it would be useful to also add a comment somewhere on why -mstackrealign is necessary for 32-bits, for future reference. Reviewed-by: Jose Fonseca Jose On 07/12/14

Re: [Mesa-dev] Compiling llvm windows name mangled

2014-12-10 Thread Jose Fonseca
I never tried, but it doesn't surprise that ?USE_MGL_NAMESPACE doesn't work properly on Windows. At very least the src/mesa/drivers/windows/gdi and src/gallium/targets/libgl-gdi targets will fail because the .DEF files there explicitly request the non-mangled symbols. Not sure if src/mesa/dr

Re: [Mesa-dev] [PATCH 1/5] gallium/util: add a helper util_create_shader_from_text, cleanup some code

2014-12-10 Thread Jose Fonseca
On 09/12/14 11:28, Marek Olšák wrote: From: Marek Olšák It's exposed, because I plan to use it elsewhere later. I hesitate in repeating myself, but I can't close my eyes. This is such a bad idea, at so many levels. How will this cope when the application is running on a different locale,

Re: [Mesa-dev] Compiling llvm windows name mangled

2014-12-11 Thread Jose Fonseca
On 11/12/14 08:40, Emil Velikov wrote: Hi Jose, On 10/12/14 14:18, Jose Fonseca wrote: I never tried, but it doesn't surprise that ?USE_MGL_NAMESPACE doesn't work properly on Windows. At very least the src/mesa/drivers/windows/gdi and src/gallium/targets/libgl-gdi targets will fa

Re: [Mesa-dev] [PATCH 1/3] gallium: add TGSI_SEMANTIC_VERTEXID_ZEROBASE and TGSI_SEMANTIC_BASEVERTEX

2014-12-11 Thread Jose Fonseca
Overall I think this is a great cleanup. Just a remark about the chosen names. On 10/12/14 21:22, srol...@vmware.com wrote: From: Roland Scheidegger Plus a new PIPE_CAP_VERTEXID_NOOFFSET query. "Vertex offset" and "base vertex" are difference concepts, so I'd rather not mix them up.

[Mesa-dev] `extern "C" { #include "foo.h" }` is evil

2014-12-11 Thread Jose Fonseca
Including system's headers inside extern "C" { ... } is not safe, as system headers may have C++ code in them, and C++ code inside extern "C" { .. } doesn't work. This is because putting code inside extern "C" won't make __plusplus define go away, that is, the headers being included thinks is

[Mesa-dev] [PATCH] include: Add helper header to help trap includes inside extern C.

2014-12-11 Thread Jose Fonseca
From: José Fonseca This is just to help repro and fixing these issues with any C++ compiler -- commiting this will of course wait until all issues are addressed. $ scons src/glsl/ scons: Reading SConscript files ... Checking for GCC ... yes Checking for Clang ... no Checking for X11 (x11 xex

Re: [Mesa-dev] `extern "C" { #include "foo.h" }` is evil

2014-12-11 Thread Jose Fonseca
OK. I found a way to make it easier to trap this sort of issues going forward, regardless of compiler. See patch I just posted. Jose From: Brian Paul Sent: 11 December 2014 22:05 To: mesa-dev@lists.freedesktop.org Cc: Jose Fonseca Subject: Re: [Mesa

Re: [Mesa-dev] [PATCH] mesa: Add mesa SHA-1 functions

2014-12-12 Thread Jose Fonseca
On 11/12/14 22:02, Brian Paul wrote: On 12/11/2014 02:51 PM, Carl Worth wrote: From: Kristian Høgsberg The upcoming shader cache uses the SHA-1 algorithm for cryptographic naming. These new mesa_sha1 functions are implemented with the nettle library. --- This patch is another in support of my

[Mesa-dev] [PATCH] util: Unbreak usage of assert()/debug_assert() inside expressions.

2014-12-12 Thread Jose Fonseca
From: José Fonseca f0ba7d897d1c22202531acb70f134f2edc30557d made debug_assert()/assert() unsafe for expressions, but only now with u_atomic.h started to rely on them for Windows this became an issue. This fixes non-debug builds with MSVC. --- src/gallium/auxiliary/util/u_debug.h | 2 +- 1 file

Re: [Mesa-dev] [RFC 8/8] gtest: remove support for GCC older than 4.1.0

2014-12-12 Thread Jose Fonseca
Series looks nice cleanup. I don't know of any need to keep support for older GCC neither. But I don't think it makes sense to mess with gtest -- it's better to keep this in sync with upstream, and clobber with new upstream versions when appropriate. All other changes are Re

Re: [Mesa-dev] [PATCH] util: Unbreak usage of assert()/debug_assert() inside expressions.

2014-12-12 Thread Jose Fonseca
On 12/12/14 16:30, Patrick Baggett wrote: On Fri, Dec 12, 2014 at 10:17 AM, Roland Scheidegger mailto:srol...@vmware.com>> wrote: Am 12.12.2014 um 15:09 schrieb Jose Fonseca: > From: José Fonseca mailto:jfons...@vmware.com>> > > f0ba7d897d1c22202531acb7

Re: [Mesa-dev] [PATCH 1/1] util: Silence signed-unsigned comparison warnings

2014-12-12 Thread Jose Fonseca
int n, unsigned int reg) static float ra_get_spill_benefit(struct ra_graph *g, unsigned int n) { - int j; + unsigned int j; float benefit = 0; int n_class = g->nodes[n].class; Reviewed-by: Jose Fonseca ___ mesa-dev mailing list m

Re: [Mesa-dev] Finishing make distcheck

2014-12-12 Thread Jose Fonseca
On 12/12/14 20:38, Matt Turner wrote: José, As it is now, since we're not building the gbm or egl state trackers via autotools, they're not included in the tarball created by make dist. That is, the files in src/gallium/state_trackers/egl src/gallium/state_trackers/gbm wouldn't be distributed.

Re: [Mesa-dev] Finishing make distcheck

2014-12-12 Thread Jose Fonseca
On 12/12/14 20:59, Matt Turner wrote: On Fri, Dec 12, 2014 at 12:54 PM, Jose Fonseca wrote: On 12/12/14 20:38, Matt Turner wrote: José, As it is now, since we're not building the gbm or egl state trackers via autotools, they're not included in the tarball created by make dist. Th

Re: [Mesa-dev] [PATCH 01/11] mesa: put extern "C" in header files

2014-12-16 Thread Jose Fonseca
#ifdef __cplusplus +extern "C" { +#endif + + /** * \name Internal functions */ @@ -212,4 +217,9 @@ _mesa_InvalidateTexImage(GLuint texture, GLint level); /*@}*/ +#ifdef __cplusplus +} +#endif + + #endif Thanks for doing this, Brian. I was about to do it myself. Series is

Re: [Mesa-dev] [PATCH 1/2] gallivm: silence a couple compiler warnings

2014-12-19 Thread Jose Fonseca
gather(struct lp_build_context *bld, LLVMBuilderRef builder = bld->gallivm->builder; LLVMValueRef res = bld->undef; unsigned i; - LLVMValueRef temp_ptr; + LLVMValueRef temp_ptr = NULL; if (overflow_mask) { temp_ptr = lp_build_alloca( Reviewed-b

Re: [Mesa-dev] [PATCH 2/4] gallium: Plumb the swap INVALIDATE_ANCILLARY flag through more layers.

2014-12-29 Thread Jose Fonseca
IIUC, "ancillary" here means depth/stencil buffer associated with the framebuffer. So basically PIPE_FLUSH_INVALIDATE_ANCILLARY you're proposing will invalidate the currently bound pipe_framebuffer_state::zsbuf. I think we eventually will want a more general invalidate pipe_context method,

Re: [Mesa-dev] [PATCH 1/2] gallium/include/pipe: Added interface for atomic counter buffers in pipe

2015-01-06 Thread Jose Fonseca
Do we really need a new pipe_context::set_counter_buffer method? Shouldn't this case be covered by pipe_context::set_shader_resources ? If we really need new method, I'd like we have better names for them, so we can clearly distinguish them. IIUC GL_ARB_shader_atomic_counters correctly, this

Re: [Mesa-dev] [PATCH 2/3] gallium: Plumb the swap INVALIDATE_ANCILLARY flag through more layers.

2015-01-06 Thread Jose Fonseca
evel/last_level/ first_layer/last_layer as structure pointer parameter, instead of requiring actual views. Which can be done later, so I suppose this is fine like this. Reviewed-by: Jose Fonseca Jose --- src/gallium/include/pipe/p_context.h | 11 +++ src/gallium/sta

Re: [Mesa-dev] [PATCH 3/3] Don't cast the return value of malloc/realloc

2015-01-07 Thread Jose Fonseca
On 08/12/14 19:56, Matt Turner wrote: See commit 2b7a972e for the Coccinelle script. [...] diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 4f5a2d1..6945c2f 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -94,7 +94,7 @@ _mesa_align_malloc(size_t bytes,

Re: [Mesa-dev] [PATCH] state_tracker: Fix assertion failures in conditional block movs.

2015-01-07 Thread Jose Fonseca
_assignment *ir) new_inst->saturate = inst->saturate; inst->dead_mask = inst->dst.writemask; } else { - emit_block_mov(ir, ir->rhs->type, &l, &r); + emit_block_mov(ir, ir->rhs->type, &l, &r, NULL, false); } } 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] mesa: Add mesa SHA-1 functions

2015-01-08 Thread Jose Fonseca
On 07/01/15 19:11, Carl Worth wrote: On Wed, Jan 07 2015, Jose Fonseca wrote: I lost bit track of email over the Christmas period. Just noticed I had flagged this one for replay. Sorry. No worries. Thanks for following up now. :-) Do you still need me to test anything on Windows? If so are

[Mesa-dev] [PATCH 1/2] mesa: Address `assignment makes integer from pointer without a cast` gcc warning.

2015-01-08 Thread Jose Fonseca
From: José Fonseca Trivial. --- src/mesa/main/imports.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 6945c2f..4f5a2d1 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -94,7 +94,7 @@ _mesa_alig

[Mesa-dev] [PATCH 2/2] st/wgl: Ignore ulVersion in DrvValidateVersion.

2015-01-08 Thread Jose Fonseca
From: José Fonseca We never used ulVersion for proper version checks. Most 3rd party drivers use version 1, but recently NVIDIA OpenGL driver started using a version number 1, so the handy trick of renaming Mesa's ICDs as nvoglv32.dll on Windows machines with NVIDIA hardware for quick testing of

Re: [Mesa-dev] [PATCH 2/2] st/wgl: Ignore ulVersion in DrvValidateVersion.

2015-01-08 Thread Jose Fonseca
On 08/01/15 16:57, Brian Paul wrote: On 01/08/2015 09:41 AM, Jose Fonseca wrote: From: José Fonseca We never used ulVersion for proper version checks. Most 3rd party drivers use version 1, but recently NVIDIA OpenGL driver started using a version number 1, What version did they use before

Re: [Mesa-dev] [PATCH 2/2] mesa: compute row stride outside of loop and fix MSVC compilation error

2015-01-08 Thread Jose Fonseca
width, height, 1, format, type, pixels, true); - pixels += _mesa_image_image_stride(&ctx->Unpack, width, height, -format, type); + pixels = (GLubyte *) pixels + rowStride; } } else { Looks good to me. S

[Mesa-dev] No rule to make target ...format_pack.c (Was: [PATCH v4 00/22] auto-generate pack/unpack functions)

2015-01-12 Thread Jose Fonseca
Iago, Jason, There seems to be some bad or missing dependency when building with automake. I have a build bot that roughly does this every time: git clean -fdx mkdir -p build cd build ../autogen.sh --prefix=/usr --enable-debug --enable-dri3 --enable-gles1 --enable-gles2 --enable-xa -

Re: [Mesa-dev] No rule to make target ...format_pack.c (Was: [PATCH v4 00/22] auto-generate pack/unpack functions)

2015-01-12 Thread Jose Fonseca
On 12/01/15 12:32, Iago Toral Quiroga wrote: Hi Jose, thanks for reporting this. On lun, 2015-01-12 at 12:18 +, Jose Fonseca wrote: Iago, Jason, There seems to be some bad or missing dependency when building with automake. I have a build bot that roughly does this every time: git

Re: [Mesa-dev] [PATCH 0/2] low hanging warning fixes

2015-01-15 Thread Jose Fonseca
| 2 +- src/mesa/state_tracker/st_program.c | 2 +- src/mesa/vbo/vbo_exec_array.c | 3 ++- src/util/hash_table.c | 2 +- 30 files changed, 56 insertions(+), 57 deletions(-) Thanks for this cleanup. Series looks good AFAICT. Reviewed-by: Jose Fonseca

Re: [Mesa-dev] NIR and MSVC

2015-01-15 Thread Jose Fonseca
On 15/01/15 15:39, Jason Ekstrand wrote: I just pushed NIR to master. I wanted to write a couple of notes about the interaction between that code and MSVC and what the current plan is. Right now, NIR won't build with MSVC; at least not MSVC 2010 (or is it 11?) as it uses quite a bit of C99. It

Re: [Mesa-dev] [PATCH v2] format_utils: Use a more precise conversion when decreasing bits

2015-01-15 Thread Jose Fonseca
Yes, the bit shifting can be a crude approximation. llvmpipe did that everywhere but we had to fix it in a few places, e.g.: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1569b3e536da9337a28a16d0cc6ed07043bf094b The multiplication is unavoidable (*), but one can avoid the division of (2*n

Re: [Mesa-dev] [PATCH v2] format_utils: Use a more precise conversion when decreasing bits

2015-01-16 Thread Jose Fonseca
doing. In that case maybe it would be better to leave the code as it is so that it's a bit easier to understand. - Neil Jose Fonseca writes: Yes, the bit shifting can be a crude approximation. llvmpipe did that everywhere but we had to fix it in a few places, e.g.: https://urldefens

Re: [Mesa-dev] [PATCH] mesa: Add mesa SHA-1 functions

2015-01-16 Thread Jose Fonseca
On 15/01/15 19:46, Carl Worth wrote: On Thu, Jan 08 2015, Jose Fonseca wrote: Note that Windows build is only supported with SCons. Never with autobuild. OK. That's good for me to learn. I've requested that the folks doing our automated build testing here will also start testing sc

[Mesa-dev] [PATCH] egl: Pass the correct X visual depth to xcb_put_image().

2015-01-19 Thread Jose Fonseca
From: José Fonseca The dri2_x11_add_configs_for_visuals() function happily matches a 32 bits EGLconfig with a 24 bits X visual. However it was passing 32bits depth to xcb_put_image(), making X server unhappy: https://github.com/apitrace/apitrace/issues/313#issuecomment-70571911 PS: I rarely

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2019-01-12 Thread Jose Fonseca
On 11/01/2019 22:38, Matt Turner wrote: On Fri, Jan 11, 2019 at 2:28 PM Ilia Mirkin wrote: On Fri, Jan 11, 2019 at 5:12 PM Matt Turner wrote: From: Gert Wollny Since Meson will eventually be the only build system deprecate autotools now. It can still be used by invoking configure with the

Re: [Mesa-dev] [PATCH 2/2] appveyor: Add a Cygwin build script

2019-01-25 Thread Jose Fonseca
I just noticed these patches, because Appveyor build is broken, and to my surprise, on Cygwin. There are several problems with these patches: - First of all, there were commited with no reviewed by.  Not by me (a quick `git log appveyor.yml` would tell you I pretty much wrote and maitain it).

[Mesa-dev] [PATCH] scons: Workaround failures with MSVC when using SCons 3.0.[2-4].

2019-02-28 Thread Jose Fonseca
This change applies the workaround suggested by Bill Deegan on the affected SCons versions. It also adds a comment with the URL explaining why we were using customizing the decider and max_drift in the first place, as I had forgotten all about it. Bugzilla: https://bugs.freedesktop.org/show_bug.c

Re: [Mesa-dev] [PATCH 2/2] gallium/util: add some const qualifiers in u_bitmask.c

2019-03-05 Thread Jose Fonseca
k = 1 << bit; + const unsigned word = index / UTIL_BITMASK_BITS_PER_WORD; + const unsigned bit = index % UTIL_BITMASK_BITS_PER_WORD; + const util_bitmask_word mask = 1 << bit; assert(bm); Series is Reviewed-by: Jose Fonseca _

Re: [Mesa-dev] [PATCH 1/3] svga: keep a list of contexts for the screen

2019-03-06 Thread Jose Fonseca
I have few doubts/questions. On 05/03/2019 23:57, Brian Paul wrote: This will allow us to query whether a context is valid. In addition to keeping a list of contexts, we need to give each context we create a unique ID which is never re-used. The screen also contains a bitmask to track which ID

Re: [Mesa-dev] dumb meson questions

2019-03-09 Thread Jose Fonseca
Did you build LLVM yourself. In my experience, passing -DCMAKE_C_FLAGS="-g1 -fno-omit-frame-pointer" \ -DCMAKE_CXX_FLAGS="-g1 -fno-omit-frame-pointer" \ to cmake when building LLVM makes debugging info much smaller, without compromising the ability to get stack traces, etc. Jos

Re: [Mesa-dev] [PATCH 1/6] st/mesa: fix sampler view context mismatch issue

2019-03-14 Thread Jose Fonseca
le_mtx_unlock(&stObj->validate_mutex); } With your upcoming change that prevents the sampler view from ever being released with the wrong context (which I suppose should go before this one?), this series is Reviewed-By: Jose Fonseca ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/8] st/mesa: implement "zombie" sampler views

2019-03-15 Thread Jose Fonseca
d5a0..c5fc30c 100644 --- a/src/mesa/state_tracker/st_texture.h +++ b/src/mesa/state_tracker/st_texture.h @@ -57,6 +57,9 @@ struct st_sampler_view { struct pipe_sampler_view *view; + /** The context which created this view */ + struct st_context *st; + /** The glsl version of the shader seen during validation */ bool glsl130_or_later; /** Derived from the sampler's sRGBDecode state during validation */ Otherwise looks great. It's nice to finally to have a proper solution for this long standing tricky issue! Reviewed-by: Jose Fonseca Jose ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] st/mesa: implement "zombie" sampler views (v2)

2019-03-17 Thread Jose Fonseca
if the view's context doesn't match the current context, ignoring the refcount. Reviewed-by: Roland Scheidegger Reviewed-by: Neha Bhende Reviewed-by: Mathias Fröhlich Reviewed-By: Jose Fonseca --- src/mesa/state_tracker/st_cb_flush.c | 6 +++ src/m

Re: [Mesa-dev] [PATCH] gallium: remove support for predicates from TGSI

2015-09-01 Thread Jose Fonseca
I'm all for TGIS simplification, but I just checked, and we rely on TGSI predicates for some of our internal state trackers. So I'll need more time to evaluate how much effort it would be to not rely on it, and when can it be done. Jose On 01/09/15 22:19, Marek Olšák wrote: From: Marek Olšá

Re: [Mesa-dev] [PATCH] gallium: remove support for predicates from TGSI

2015-09-03 Thread Jose Fonseca
On the flip side, we could remove TGSI_FILE_ADDR, TGSI_OPCODE_ARL, and TGSI_OPCODE_ARR. We already remove all dependencies of these from our internal state tracers. And it is trivial to do so, at least for HW with native integer support. Jose On 01/09/15 23:55, Jose Fonseca wrote: I'

Re: [Mesa-dev] [PATCH] llvmpipe: convert double to long long instead of unsigned long long

2015-09-04 Thread Jose Fonseca
On 03/09/15 16:26, Tom Stellard wrote: On Thu, Sep 03, 2015 at 06:15:26PM +0300, Oded Gabbay wrote: round(val*dscale) produces a double result, as val and dscale are double. However, LLVMConstInt receives unsigned long long, so there is an implicit conversion from double to unsigned long long. T

Re: [Mesa-dev] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-07 Thread Jose Fonseca
On 07/09/15 10:17, Jean-Sébastien Pédron wrote: On 04.09.2015 01:37, Matt Turner wrote: You need to test for this support in configure.ac. It's as simple as adding a call to AX_GCC_FUNC_ATTRIBUTE in the existing alphabetized list and then a little bit of preprocessor in src/util/macros.h. Shou

Re: [Mesa-dev] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-10 Thread Jose Fonseca
On 10/09/15 02:54, Ian Romanick wrote: On 09/07/2015 06:54 AM, Jose Fonseca wrote: On 07/09/15 10:17, Jean-Sébastien Pédron wrote: On 04.09.2015 01:37, Matt Turner wrote: You need to test for this support in configure.ac. It's as simple as adding a call to AX_GCC_FUNC_ATTRIBUTE i

Re: [Mesa-dev] [PATCH] ralloc: Use __attribute__((destructor)) instead of atexit(3)

2015-09-11 Thread Jose Fonseca
On 11/09/15 00:35, Erik Faye-Lund wrote: On Mon, Sep 7, 2015 at 3:54 PM, Jose Fonseca wrote: On 07/09/15 10:17, Jean-Sébastien Pédron wrote: On 04.09.2015 01:37, Matt Turner wrote: You need to test for this support in configure.ac. It's as simple as adding a call to AX_GCC_FUNC_ATTR

[Mesa-dev] [PATCH 4/5] st/nine: Ignore pipe_rasterizer_state::line_last_pixel.

2015-09-14 Thread Jose Fonseca
This state is ignored by most gallium drivers. I also don't know of any D3D9 application that relies on D3DRS_LASTPIXEL. And even WHCK itself doesn't seem to test it. --- src/gallium/state_trackers/nine/nine_pipe.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/state_trackers/nin

[Mesa-dev] [PATCH 1/5] svga: Ignore pipe_rasterizer_state::line_last_pixel.

2015-09-14 Thread Jose Fonseca
Altough SVGA3D_RS_LASTPIXEL renderstate exists, most backends ignore it. --- src/gallium/drivers/svga/svga_context.h | 1 - src/gallium/drivers/svga/svga_pipe_rasterizer.c | 1 - src/gallium/drivers/svga/svga_state_rss.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff -

[Mesa-dev] [PATCH 2/5] ilo: Ignore pipe_rasterizer_state::line_last_pixel.

2015-09-14 Thread Jose Fonseca
--- src/gallium/drivers/ilo/ilo_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index d89765a..d50d5c4 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @

[Mesa-dev] [PATCH 5/5] gallium: Remove pipe_rasterizer_state::line_last_pixel.

2015-09-14 Thread Jose Fonseca
This state has been de-fact ignored all along. --- src/gallium/auxiliary/hud/hud_context.c| 1 - src/gallium/auxiliary/util/u_dump_state.c | 1 - src/gallium/docs/source/cso/rasterizer.rst | 4 src/gallium/drivers/trace/tr_dump_state.c | 1 - src/gallium/include/pipe/p_state.h |

[Mesa-dev] [PATCH 3/5] nouveau: Ignore pipe_rasterizer_state::line_last_pixel.

2015-09-14 Thread Jose Fonseca
--- src/gallium/drivers/nouveau/nv50/nv50_state.c | 3 --- src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 1 - 2 files changed, 4 deletions(-) diff --git a/src/gallium/drivers/nouveau/nv50/nv50_state.c b/src/gallium/drivers/nouveau/nv50/nv50_state.c index 410e631..76c3508 100644 --- a/src/galli

Re: [Mesa-dev] [PATCH 1/5] svga: Ignore pipe_rasterizer_state::line_last_pixel.

2015-09-14 Thread Jose Fonseca
feature, so it could be implemented there. What is the policy for removing gallium features ? Even though there is no real support for it is, it doesn't seem a feature that can be emulated with other features. Yours, Axel Davy On 14/09/2015 13:09, Jose Fonseca wrote : Altough SVG

Re: [Mesa-dev] [PATCH] st/xa: Use PIPE_FORMAT_R8_UNORM when available

2015-09-17 Thread Jose Fonseca
On 16/09/15 14:04, Thomas Hellstrom wrote: XA has been using L8_UNORM for a8 and yuv component surfaces. This commit instead makes XA prefer R8_UNORM since it's assumed to have a higher availability. Also neither of these formats are suitable as destination formats using destination alpha blendi

Re: [Mesa-dev] [PATCH] st/xa: Use PIPE_FORMAT_R8_UNORM when available

2015-09-17 Thread Jose Fonseca
On 17/09/15 10:58, Thomas Hellstrom wrote: On 09/17/2015 11:53 AM, Thomas Hellstrom wrote: On 09/17/2015 11:34 AM, Jose Fonseca wrote: On 16/09/15 14:04, Thomas Hellstrom wrote: XA has been using L8_UNORM for a8 and yuv component surfaces. This commit instead makes XA prefer R8_UNORM since

Re: [Mesa-dev] [PATCH] st/xa: Fixups for PIPE_FORMAT_R8_UNORM A8 usage v2.

2015-09-18 Thread Jose Fonseca
, atopreverse and xor seem to work fine with a8 destiation. v2: Fix a copy-paste error. Reported-by: Jose Fonseca Signed-off-by: Thomas Hellstrom --- src/gallium/state_trackers/xa/xa_composite.c | 34 src/gallium/state_trackers/xa/xa_renderer.c | 6 +++-- 2 files

Re: [Mesa-dev] [PATCH] gallium: remove support for predicates from TGSI

2015-09-25 Thread Jose Fonseca
On 24/09/15 19:01, Marek Olšák wrote: On Wed, Sep 2, 2015 at 12:55 AM, Jose Fonseca wrote: I'm all for TGIS simplification, but I just checked, and we rely on TGSI predicates for some of our internal state trackers. So I'll need more time to evaluate how much effort it would be to n

Re: [Mesa-dev] [PATCH] main: replace str*dup() by str*cpy() to be compliant with C89, C99.

2015-09-28 Thread Jose Fonseca
On 28/09/15 09:09, Samuel Iglesias Gonsalvez wrote: Fix SCons MinGW build error: Compiling src/mesa/main/shader_query.cpp ... src/mesa/main/shader_query.cpp: In function ‘char* get_top_level_name(const char*)’: src/mesa/main/shader_query.cpp:841:34: error: ‘strndup’ was not declared in this sc

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 27/09/15 19:14, Marek Olšák wrote: Hi, For some reason, st/mesa assumes that shaders can't be shared by multiple contexts and therefore has a context pointer in shader keys. I'd like to get rid of this dependency, because there is no reason why shaders would need to be tied to a context. In f

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 28/09/15 14:51, Marek Olšák wrote: On Mon, Sep 28, 2015 at 2:55 PM, Jose Fonseca wrote: On 27/09/15 19:14, Marek Olšák wrote: Hi, For some reason, st/mesa assumes that shaders can't be shared by multiple contexts and therefore has a context pointer in shader keys. I'd like to

Re: [Mesa-dev] [PATCH] util: implement strndup for WIN32

2015-09-28 Thread Jose Fonseca
Looks great Samuel. Just minor suggestions. Either way: Reviewed-by: Jose Fonseca On 28/09/15 15:19, Samuel Iglesias Gonsalvez wrote: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92124 Cc: Jose Fonseca --- I tested it on MSVC but not MinGW. I hope I did not something wrong

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 28/09/15 21:21, Marek Olšák wrote: On Mon, Sep 28, 2015 at 9:28 PM, Jose Fonseca wrote: On 28/09/15 14:51, Marek Olšák wrote: On Mon, Sep 28, 2015 at 2:55 PM, Jose Fonseca wrote: On 27/09/15 19:14, Marek Olšák wrote: Hi, For some reason, st/mesa assumes that shaders can't be s

Re: [Mesa-dev] Question: st/mesa and context-shareable shaders

2015-09-28 Thread Jose Fonseca
On 28/09/15 15:30, Rob Clark wrote: On Mon, Sep 28, 2015 at 8:55 AM, Jose Fonseca wrote: I see only 2 options out of this: 1) Removing the context pointer from the shader keys. If drivers need this, they should handle it by themselves. This will simplify st/mesa, because TCS, TES, GS won&#

Re: [Mesa-dev] [PATCH] util: use strnlen() in strndup() implementations

2015-09-29 Thread Jose Fonseca
calloc(n + 1, sizeof(char)); if (!ptr) return NULL; 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] c11/threads: initialize timeout structure

2015-10-06 Thread Jose Fonseca
On 06/10/15 20:30, Ian Romanick wrote: On 10/06/2015 12:04 PM, Matt Turner wrote: On Sat, Oct 3, 2015 at 5:19 PM, Jan Vesely wrote: Signed-off-by: Jan Vesely --- include/c11/threads_posix.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/c11/threads_posix.h b/include/c11/

[Mesa-dev] ipers performance regression (Was: u_upload_mgr changes)

2016-01-04 Thread Jose Fonseca
On 21/12/15 22:35, Marek Olšák wrote: Hi, This patch series adds more flexibility to u_upload_mgr. First, it adds the ability to specify the alignment per suballocation. The idea is that several users can use the same upload buffer, but each may need a different alignment. Finally, it allows

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