Re: [Mesa-dev] threading in OSMesa and gallium swr driver

2018-05-18 Thread Rowley, Timothy O
On May 16, 2018, at 9:25 AM, Alexandre > wrote: Thank you for your answer. I understand I can control the number of threads and prevent them to be assigned to actual hardware threads. Preventing oversubscription

Re: [Mesa-dev] [Mesa-stable] [PATCH] swr: Fix KNOB_MAX_WORKER_THREADS thread creation override.

2017-12-13 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Dec 12, 2017, at 5:37 PM, Bruce Cherniak > wrote: Environment variable KNOB_MAX_WORKER_THREADS allows the user to override default thread

Re: [Mesa-dev] [PATCH] gallivm: allow arch rounding with avx512

2017-11-01 Thread Rowley, Timothy O
I agree that we’re probably dropping into fallback paths in a variety of locations as there are a number of width==256 tests in the gallivm code. Right now I’m working through piglit regressions versus avx2 in our driver, and the rounding tests weren't passing. Thanks. > On Nov 1, 2017, at

Re: [Mesa-dev] [PATCH 1/2] configure.ac: add _DEBUG to strip_unwanted_llvm_flags

2017-10-16 Thread Rowley, Timothy O
Ping. This is useful for those building their own llvm. > On Oct 3, 2017, at 3:23 PM, Rowley, Timothy O <timothy.o.row...@intel.com> > wrote: > > Assert-enabled builds of llvm add _DEBUG to the LLVM_CFLAGS. > > This was causing a crash with swr running the ParaView

Re: [Mesa-dev] [PATCH 2/9] swr/rast: New GS state/context API

2017-09-25 Thread Rowley, Timothy O
Ok, made the following changes - want a full v2 commit, or ok to do this on push? --- a/src/gallium/drivers/swr/swr_shader.cpp +++ b/src/gallium/drivers/swr/swr_shader.cpp @@ -533,12 +533,12 @@ BuilderSWR::CompileGS(struct swr_context *ctx, swr_jit_gs_key ) pGS->inputVertStride =

Re: [Mesa-dev] [PATCH] swr/rast: do not crash on NULL strings returned by getenv

2017-09-19 Thread Rowley, Timothy O
I have a bit of a preference for Eric’s version. -Tim On Sep 18, 2017, at 7:10 AM, Emil Velikov > wrote: On 18 September 2017 at 11:48, Eric Engestrom > wrote: On Monday,

Re: [Mesa-dev] [PATCH] swr: Add arch flags to support Cray and PGI compilers

2017-08-01 Thread Rowley, Timothy O
On Jul 31, 2017, at 3:51 PM, Chuck Atkins > wrote: Hi Tim, If the Cray flags are for wrapper scripts, why do we need specific flags for that instead of using the underlying compiler flags? Sort answer: It's the "Cray" way of doing

Re: [Mesa-dev] [PATCH 12/13] swr/rast: split gen_knobs template into .cpp and .h files

2017-08-01 Thread Rowley, Timothy O
On Jul 31, 2017, at 3:18 PM, Emil Velikov > wrote: Hi Tim, What's the goal behind the split. Please add a couple of words in the commit message. Will do. On 31 July 2017 at 20:40, Tim Rowley

Re: [Mesa-dev] [PATCH 11/13] swr/rast: fixes for 32-bit builds

2017-08-01 Thread Rowley, Timothy O
> On Jul 31, 2017, at 3:56 PM, Emil Velikov wrote: > > Hi Tim, > > Some of the inline functions seem unused. > Very quick search showed the following: > > InterpolateComponent > _simd128_abs_ps > _simd_abs_ps The intent of simdlib is a general purpose vector

Re: [Mesa-dev] [PATCH] swr: Add arch flags to support Cray and PGI compilers

2017-07-31 Thread Rowley, Timothy O
If the Cray flags are for wrapper scripts, why do we need specific flags for that instead of using the underlying compiler flags? I’m guessing you intend this for the 17.2 branch as well? -Tim > On Jul 31, 2017, at 2:53 PM, Chuck Atkins wrote: > > Note that the Cray

Re: [Mesa-dev] [PATCH] swr: fix transform feedback logic

2017-07-23 Thread Rowley, Timothy O
> On Jul 23, 2017, at 11:08 AM, George Kyriazis > wrote: > > The shader that is used to copy vertex data out of the vs/gs shaders to > the user-specified buffer (streamout os SO shader) was not using the > correct offsets. > > Adjust the offsets that are used just

Re: [Mesa-dev] [Mesa-stable] [PATCH 3/3] swr: use the correct variable for no undefined symbols

2017-07-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jul 21, 2017, at 1:05 PM, Emil Velikov wrote: > > From: Emil Velikov > > The variable name was missing a leading LD_, which resulted in the > backend binaries having unresolved

Re: [Mesa-dev] [PATCH 1/3] swr: don't forget to link AVX/AVX2 against pthreads

2017-07-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jul 21, 2017, at 1:05 PM, Emil Velikov wrote: > > From: Emil Velikov > > Seems like the backends have been using pthreads since day one, yet > we've been missing the link. > > With

Re: [Mesa-dev] [PATCH 2/3] swr: don't forget to link KNL/SKX against pthreads

2017-07-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jul 21, 2017, at 1:05 PM, Emil Velikov wrote: > > From: Emil Velikov > > Analogous to previous commit but for the KNL/SKX backends. > > Cc: Bruce Cherniak

Re: [Mesa-dev] [Mesa-stable] [PATCH] swr: use the correct variable for no undefined symbols

2017-07-21 Thread Rowley, Timothy O
Couple things about the patch: should PTHREAD_CFLAGS be added to COMMON_CXXFLAGS to avoid needing to modify the section for each architecture? The KNL and SKX sections should have similar changes. I’ve tested that the scons binaries work on linux, and George tests them on windows. -Tim > On

Re: [Mesa-dev] [PATCH] gallium/util: fix nondeterministic avx512 detection

2017-07-19 Thread Rowley, Timothy O
There weren’t any direct users of the avx512 features yet, but probably worth proposing for stable pickup. Thanks. -Tim > On Jul 19, 2017, at 2:40 PM, Roland Scheidegger wrote: > > Makes sense to me. > Probably should go into stable? > > Reviewed-by: Roland Scheidegger

Re: [Mesa-dev] [PATCH 2/2] configure/swr: add KNL and SKX architecture targets

2017-07-18 Thread Rowley, Timothy O
On Jul 17, 2017, at 11:51 AM, Emil Velikov > wrote: On 17 July 2017 at 15:08, Tim Rowley > wrote: Not built by default. --- configure.ac | 16

Re: [Mesa-dev] [PATCH 1/2] configure/swr: configurable swr architectures

2017-07-18 Thread Rowley, Timothy O
On Jul 17, 2017, at 11:42 AM, Emil Velikov > wrote: On 17 July 2017 at 15:08, Tim Rowley > wrote: Allow configuration of the SWR architecture depend libraries we build for

Re: [Mesa-dev] [PATCH] swr: remove unneeded fallback strcasecmp define

2017-07-17 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jul 17, 2017, at 9:34 AM, Emil Velikov wrote: > > From: Emil Velikov > > The last user of the function was removed with earlier commit. > > Fixes: 50842e8a931 ("swr: replace

Re: [Mesa-dev] [PATCH v2 0/3] swr: Optimize large draws from client arrays.

2017-07-12 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jul 12, 2017, at 3:04 PM, Bruce Cherniak wrote: > > If size of client memory copy is too large, don't copy. The draw will > access user-buffer directly and then block. This is faster and more > efficient than

Re: [Mesa-dev] [PATCH 3/3] swr: Add path to draw directly from client memory without copy.

2017-07-12 Thread Rowley, Timothy O
> On Jul 11, 2017, at 8:20 PM, Bruce Cherniak wrote: > > If size of client memory copy is too large, don't copy. The draw will > access user-buffer directly and then block. This is faster and more > efficient than queuing many large client draws. > > Applications

Re: [Mesa-dev] [PATCH 2/2] swr: build driver proper separate from rasterizer

2017-07-10 Thread Rowley, Timothy O
On Jul 10, 2017, at 8:24 AM, Emil Velikov > wrote: Hi Tim, On 7 July 2017 at 22:25, Tim Rowley > wrote: swr used to build and link the rasterizer to the driver, and to

Re: [Mesa-dev] [RFC] travis: lower SWR requirement to GCC 4.8, aka std=c++11

2017-07-06 Thread Rowley, Timothy O
On Jul 6, 2017, at 5:39 AM, Emil Velikov <emil.l.veli...@gmail.com<mailto:emil.l.veli...@gmail.com>> wrote: On 5 July 2017 at 19:28, Rowley, Timothy O <timothy.o.row...@intel.com<mailto:timothy.o.row...@intel.com>> wrote: On Jul 4, 2017, at 12:01 PM, Emil Velikov &

Re: [Mesa-dev] [RFC] travis: lower SWR requirement to GCC 4.8, aka std=c++11

2017-07-05 Thread Rowley, Timothy O
> On Jul 4, 2017, at 12:01 PM, Emil Velikov wrote: > > From: Emil Velikov > > With ealier commit we relaxed the requirement from C++14 to C++11. > Update the build script so that it > > Cc: Tim Rowley Fixes:

Re: [Mesa-dev] [PATCH] swr: Minor cleanup of variable usage, no functional change.

2017-06-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jun 29, 2017, at 2:41 PM, Bruce Cherniak wrote: > > In swr_update_derived, for consistency, index buffer validation should > be using the p_draw_info copy "info" rather than referencing > p_draw_info. > > No

Re: [Mesa-dev] [PATCH 1/8] swr/rast: Split backend.cpp to improve compile time

2017-06-29 Thread Rowley, Timothy O
> On Jun 28, 2017, at 3:56 AM, Emil Velikov <emil.l.veli...@gmail.com> wrote: > > On 26 June 2017 at 17:14, Rowley, Timothy O <timothy.o.row...@intel.com> > wrote: >> >> On Jun 26, 2017, at 7:57 AM, Emil Velikov <emil.l.veli...@gmail.com> wrote: &g

Re: [Mesa-dev] [PATCH] swr: Remove need to allocate vertex buffer scratch space all in one go.

2017-06-29 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jun 28, 2017, at 1:42 PM, Bruce Cherniak > wrote: Deferred deletion (via "fence_work") has obsoleted the need to allocate all client vertex

Re: [Mesa-dev] [PATCH] swr: conditionally validate vertex buffer state

2017-06-29 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jun 27, 2017, at 5:49 PM, Bruce Cherniak > wrote: Vertex buffer state doesn't need to be validated on every call, only on dirty _NEW_VERTEX or

Re: [Mesa-dev] [PATCH 5/8] swr/rast: Switch intrinsic usage to SIMDLib

2017-06-26 Thread Rowley, Timothy O
> On Jun 26, 2017, at 8:11 AM, Emil Velikov wrote: > > Hi Tim, > > On 22 June 2017 at 22:13, Tim Rowley wrote: >> Switch from a macro-based simd intrinsics layer to a more C++ >> implementation, which also adds AVX512 optimizations to

Re: [Mesa-dev] [PATCH 3/8] swr/rast: Split rasterizer.cpp to improve compile times

2017-06-26 Thread Rowley, Timothy O
On Jun 26, 2017, at 8:02 AM, Emil Velikov > wrote: On 22 June 2017 at 22:13, Tim Rowley > wrote: Hardcode split to four files currently. Decreases swr build time on KNL by

Re: [Mesa-dev] [PATCH 1/8] swr/rast: Split backend.cpp to improve compile time

2017-06-26 Thread Rowley, Timothy O
On Jun 26, 2017, at 7:57 AM, Emil Velikov > wrote: Hi Tim, On 22 June 2017 at 22:13, Tim Rowley > wrote: Hardcode split to four files currently. Decreases swr build time on

Re: [Mesa-dev] [PATCH 0/8] swr: update rasterizer

2017-06-26 Thread Rowley, Timothy O
> On Jun 26, 2017, at 7:41 AM, Emil Velikov wrote: > On 22 June 2017 at 22:12, Tim Rowley wrote: >> Highlights include splitting the heavily templated files into multiple >> chunks to speed compile (2x for a large machine), and switching the

Re: [Mesa-dev] [PATCH] swr: set an explicit clear_rect if scissor is not enabled.

2017-06-26 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jun 26, 2017, at 10:26 AM, Bruce Cherniak > wrote: Fix regression of "no rendering" on simple apps like glxgears by setting an explicit full

Re: [Mesa-dev] [PATCH] swr: invalidate attachment on transition change

2017-06-22 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jun 20, 2017, at 11:42 AM, George Kyriazis > wrote: Consider the following RT attachment order: 1. Attach surfaces attachments 0 & 1, and

Re: [Mesa-dev] [PATCH] swr/rast: Include definition of missing function

2017-06-20 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jun 20, 2017, at 12:53 PM, George Kyriazis > wrote: Inline function SWR_MULTISAMPLE_POS::PrecalcSampleData() was missing definition. Include

Re: [Mesa-dev] [PATCH v2] swr: Don't crash when encountering a VBO with stride = 0.

2017-06-16 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Jun 15, 2017, at 11:24 AM, Bruce Cherniak > wrote: The swr driver uses vertex_buffer->stride to determine the number of elements in a VBO. A

Re: [Mesa-dev] [PATCH 2/4] configure.ac: remove explicit -lpthread link

2017-06-09 Thread Rowley, Timothy O
With this patch series applied, the build fails for me on ubuntu 16.04. Tree configured thusly: ../mesa/configure --with-platforms=x11 --disable-gbm --disable-egl --disable-dri --disable-xvmc --disable-vdpau --disable-omx --disable-va --with-gallium-drivers=swrast,swr

Re: [Mesa-dev] [Mesa-stable] [PATCH] automake: add SWR LLVM gen_builder.hpp workaround

2017-05-19 Thread Rowley, Timothy O
Thanks for doing this; I would have been hunting for the dist-hook: magic for a while. Tested “make dist” on llvm-3.9.0 (works) and llvm-4.0/llvm-svn (fails, expected desired behavior). Built result of llvm-3.9.0 “make dist” with llvm-4.0 and llvm-svn and it compiles/works. Reviewed-by: Tim

Re: [Mesa-dev] Bug in 17.1.0-rc4 source packaging for swr?

2017-05-19 Thread Rowley, Timothy O
On May 19, 2017, at 10:26 AM, Emil Velikov > wrote: On 19 May 2017 at 13:11, Chuck Atkins > wrote: Would it be feasible for packaging purposes to generate multiple headers, i.e.

Re: [Mesa-dev] Bug in 17.1.0-rc4 source packaging for swr?

2017-05-18 Thread Rowley, Timothy O
On May 17, 2017, at 12:08 PM, Emil Velikov > wrote: On 10 May 2017 at 03:51, Chuck Atkins > wrote: I just tried to build 17.0.4-rc4 from the tarball with swr enabled and got

Re: [Mesa-dev] [PATCH v3] swr: move msaa resolve to generalized StoreTile

2017-05-08 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On May 4, 2017, at 7:33 PM, Bruce Cherniak > wrote: v3: list piglit tests fixed by this patch. Fixed typo Tim pointed out. v2: Reword commit message

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] swr: move msaa resolve to generalized StoreTile

2017-05-04 Thread Rowley, Timothy O
> On Apr 27, 2017, at 6:22 PM, Bruce Cherniak wrote: > > v2: Reword commit message to more closely adhere to community > guidelines. > > This patch moves msaa resolve down into core/StoreTiles where the > surface format conversion routines are available. The previous

Re: [Mesa-dev] [PATCH 2/2] swr: Fix polygonmode for front==back

2017-04-25 Thread Rowley, Timothy O
Additionally I don’t think this should go into stable - without the corresponding rasterizer commit (which feels like a risky change post -rc1) it is of limited use. On Apr 25, 2017, at 6:58 PM, Ilia Mirkin > wrote: This will cause asserts on

Re: [Mesa-dev] [PATCH] swr: add linux to scons build

2017-04-14 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Apr 13, 2017, at 2:17 PM, George Kyriazis > wrote: Make swr compile for both linux and windows. --- src/gallium/drivers/swr/SConscript|

Re: [Mesa-dev] [PATCH] swr: Removed unnecessary PIPE_BIND flags from swr_is_format_supported

2017-04-13 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Apr 12, 2017, at 6:53 PM, Bruce Cherniak > wrote: Removed unnecessary and probably wrong PIPE_BIND_SCANOUT and PIPE_BIND_SHARED flags in favor of

Re: [Mesa-dev] [PATCH] swr: Align swr_context allocation to SIMD alignment.

2017-04-13 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Apr 12, 2017, at 6:43 PM, Bruce Cherniak > wrote: The context now contains SIMD vectors which must be aligned (specifically samplePositions in

Re: [Mesa-dev] [PATCH] swr: return true for PIPE_CAP_DOUBLES

2017-04-13 Thread Rowley, Timothy O
On Apr 13, 2017, at 4:26 AM, Nicolai Hähnle > wrote: On 11.04.2017 18:53, Tim Rowley wrote: --- src/gallium/drivers/swr/swr_screen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/swr/swr_screen.cpp

Re: [Mesa-dev] [PATCH] docs: document the C++14 SWR requirement

2017-04-12 Thread Rowley, Timothy O
On Apr 12, 2017, at 9:11 AM, Emil Velikov > wrote: From: Emil Velikov > Earlier commit bumped the requirement for the SWR driver. Cc: Tim Rowley

Re: [Mesa-dev] [PATCH v3] swr: [rasterizer codegen] Fix windows build

2017-03-29 Thread Rowley, Timothy O
Commit comment should not include “[rasterizer codegen]”, as it doesn’t modify that code. With that fixed, Reviewed-by: Tim Rowley > On Mar 28, 2017, at 4:44 PM, George Kyriazis

Re: [Mesa-dev] [PATCH v2 10/10] swr: [rasterizer codegen] Fix windows build

2017-03-28 Thread Rowley, Timothy O
others where it doesn’t. I’ll need to investigate more. Fix in a separate checkin later? George On Mar 27, 2017, at 8:38 PM, Rowley, Timothy O <timothy.o.row...@intel.com<mailto:timothy.o.row...@intel.com>> wrote: On closer review of 10/10, I don’t like the approach taken here. You’ve ad

Re: [Mesa-dev] [PATCH v2 10/10] swr: [rasterizer codegen] Fix windows build

2017-03-27 Thread Rowley, Timothy O
On closer review of 10/10, I don’t like the approach taken here. You’ve added a —template argument to gen_backends.py, making it different from the rest of the scripts and actually running it with different parameters on automake and scons. Can’t you get scons to have the necessary dependency

Re: [Mesa-dev] [PATCH 01/10] swr: [rasterizer codegen] Refactor codegen

2017-03-27 Thread Rowley, Timothy O
On Mar 27, 2017, at 5:06 AM, Emil Velikov > wrote: On 25 March 2017 at 12:00, Tim Rowley > wrote: Move common codegen functions into gen_common.py. ---

Re: [Mesa-dev] [PATCH 00/32] update swr rasterizer

2017-03-20 Thread Rowley, Timothy O
> On Mar 20, 2017, at 1:42 PM, Emil Velikov wrote: > > On 16 March 2017 at 19:09, Tim Rowley wrote: >> Hightlights include: lots of simd16 work, assert rework, and autogen >> changes (scripts centralized, one file added, two removed). >>

Re: [Mesa-dev] [PATCH 00/28] update swr rasterizer

2017-03-16 Thread Rowley, Timothy O
On Mar 15, 2017, at 9:59 PM, Emil Velikov > wrote: Hi Tim, On 16 March 2017 at 00:12, Tim Rowley > wrote: Hightlights include: lots of simd16 work, assert rework, and

Re: [Mesa-dev] [PATCH 1/4] configure.ac: increase required swr llvm to 3.9.0

2017-03-03 Thread Rowley, Timothy O
> On Mar 3, 2017, at 5:55 AM, Emil Velikov wrote: > > On 3 March 2017 at 01:16, Tim Rowley wrote: >> GS implementation uses the masked.{gather,store} intrinsics, >> introduced in llvm-3.9.0. > > Please mention in the commit message that

Re: [Mesa-dev] [PATCH] swr: Fix crash in swr_update_derived following st/mesa state changes.

2017-03-02 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Mar 1, 2017, at 10:58 PM, Bruce Cherniak > wrote: Recent change to st/mesa state update logic caused major regressions to swr validation code.

Re: [Mesa-dev] [PATCH] docs: update features.txt for GL_ARB_clear_texture with swr

2017-03-02 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Feb 25, 2017, at 9:17 PM, Bruce Cherniak > wrote: --- docs/features.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [Mesa-dev] [PATCH] swr: [rasterizer common/core/jitter] fetch support for GL_FIXED

2017-03-01 Thread Rowley, Timothy O
> On Feb 9, 2017, at 8:50 AM, Emil Velikov wrote: > > On 7 December 2016 at 23:58, Tim Rowley wrote: >> --- >> .../drivers/swr/rasterizer/common/formats.cpp | 104 >> ++--- >> .../drivers/swr/rasterizer/common/formats.h

Re: [Mesa-dev] [PATCH] swr: [rasterizer core] Removed unused clip code.

2017-02-06 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Feb 3, 2017, at 11:35 AM, Bruce Cherniak > wrote: Removed unused Clip() and FRUSTUM_CLIP_MASK define. ---

Re: [Mesa-dev] [Mesa-stable] [PATCH] swr: [rasterizer core] Remove dead code Clipper::ClipScalar()

2017-02-06 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Feb 4, 2017, at 5:55 PM, Vinson Lee > wrote: Tested-by: Vinson Lee > On Thu, Feb 2, 2017 at 12:42 PM,

Re: [Mesa-dev] [PATCH] swr: Fix BugID 9919 compile error (icc-only).

2016-12-22 Thread Rowley, Timothy O
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99119 Reviewed-by: Tim Rowley > On Dec 22, 2016, at 6:06 PM, Bruce Cherniak > wrote: ICC doesn't like the use of

Re: [Mesa-dev] [PATCH v2 2/2] swr: supply proper clip distances to point sprites

2016-12-08 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Dec 8, 2016, at 8:21 PM, Ilia Mirkin > wrote: Large points become pairs of triangles when rasterized, so we must feed it three clip distances, one for

Re: [Mesa-dev] [PATCH v2 1/2] swr: perform perspective division on clip distances

2016-12-08 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Dec 8, 2016, at 8:21 PM, Ilia Mirkin > wrote: Clip distances need to be perspective-divided. This fixes all the interpolation-*-{distance,vertex}

Re: [Mesa-dev] [PATCH] swr: perform perspective division on clip distances

2016-12-08 Thread Rowley, Timothy O
> On Nov 24, 2016, at 2:29 PM, Ilia Mirkin wrote: > > Clip distances need to be perspective-divided. This fixes all the > interpolation-*-{distance,vertex} piglits. > > Also take this opportunity to fix clip distances for points rasterized > as triangles - the clip

Re: [Mesa-dev] [PATCH] gallivm: use getHostCPUFeatures on x86/llvm-4.0+.

2016-12-06 Thread Rowley, Timothy O
Interesting. My testing was done using piglit on an avx512 capable processor, where I didn’t see any regressions. llvmpipe’s “make check” also passes for me with this change on avx2 and avx512 machines. Was this the only regression you saw? -Tim > On Dec 6, 2016, at 12:27 AM, Michel Dänzer

Re: [Mesa-dev] [PATCH] swr: Fix active_queries count

2016-12-02 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Dec 1, 2016, at 7:08 PM, Bruce Cherniak > wrote: The active_query count was incorrect for query types that don't require a begin_query. Removed

Re: [Mesa-dev] [PATCH v2] swr: Fix type to match parameters of std::max()

2016-12-02 Thread Rowley, Timothy O
Should have parens on the zsbuf test line to match your corresponding change for cbuf attachments. With that change, Reviewed-by: Tim Rowley > On Dec 2, 2016, at 1:18 PM, George Kyriazis

Re: [Mesa-dev] [PATCH 5/5] swr: add streamout buffer offset into pBuffer pointer

2016-11-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 29, 2016, at 8:23 PM, Ilia Mirkin > wrote: The buffer_size does not take the offset into account. Just add the offset into the pointer which lines up

Re: [Mesa-dev] [PATCH 2/5] swr: turn off queries around blits

2016-11-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 29, 2016, at 8:23 PM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 4/5] swr: fix assertion for max number of so targets

2016-11-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 29, 2016, at 8:23 PM, Ilia Mirkin > wrote: The number has to be less than or equal to the max, not just less than. Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 3/5] swr: properly report max number of SO components

2016-11-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 29, 2016, at 8:23 PM, Ilia Mirkin > wrote: The components count the number of individual values, not the number of slots. Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 1/5] swr: don't advertise stream pause/resume

2016-11-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 29, 2016, at 8:23 PM, Ilia Mirkin > wrote: There is no support for resuming streamout. Furthermore, this also controls glDrawTransformFeedback

Re: [Mesa-dev] [PATCH] swr: remove warning about multi-layer surfaces

2016-11-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 29, 2016, at 8:05 PM, Ilia Mirkin > wrote: We now support clearing these, and actually rendering to multiple layers would require GS support, which

Re: [Mesa-dev] [PATCH] swr: [rasterizer core] don't attempt to load another RTAI when storing

2016-11-30 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 16, 2016, at 9:04 PM, Ilia Mirkin > wrote: Since we don't pass a renderTargetArrayIndex in, and the current hot tile may be for a different index, we

Re: [Mesa-dev] [PATCH] swr: [rasterizer memory] assert when trying to convert an unknown format

2016-11-30 Thread Rowley, Timothy O
Not seeing this assert fire on our tests either. Reviewed-by: Tim Rowley > On Nov 29, 2016, at 8:04 PM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH] swr: [rasterizer jit] use signed integer representation for logic op

2016-11-29 Thread Rowley, Timothy O
On Nov 27, 2016, at 11:13 PM, Ilia Mirkin > wrote: On Thu, Nov 24, 2016 at 6:11 PM, Ilia Mirkin > wrote: Instead of (incorrectly) biasing the snorm value to make it look like a unorm, just use

Re: [Mesa-dev] [PATCH 6/6] swr: add missing rgbx8_srgb variant

2016-11-29 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 22, 2016, at 7:37 PM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 5/6] swr: reorder renderable formats, add grouping comments

2016-11-29 Thread Rowley, Timothy O
I’ve verified the same entries are in the list before/after. Reviewed-by: Tim Rowley > On Nov 22, 2016, at 7:37 PM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 3/6] swr: enable cubemap arrays

2016-11-29 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 22, 2016, at 7:37 PM, Ilia Mirkin > wrote: Everything is in place for these. Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 4/6] swr: use util_copy_framebuffer_state helper

2016-11-29 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 22, 2016, at 7:37 PM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 2/6] swr: rearrange caps into limits/supported/unsupported groups

2016-11-29 Thread Rowley, Timothy O
Ouch, that must have been a pain to reorganize - thanks. Visual inspection says the caps are the same before and after, and testing shows it still passing the same tests. Reviewed-by: Tim Rowley > On Nov 22, 2016, at 7:37 PM, Ilia

Re: [Mesa-dev] [PATCH 1/6] swr: only store up to the LOD size

2016-11-29 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 22, 2016, at 7:37 PM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 4/4] swr: [rasterizer core] use ClearTile helper to store fast clears

2016-11-28 Thread Rowley, Timothy O
This patch is showing some regressions on internal testing. As we talked about on irc, it appears to be a combination of crashes (probably missing table entries) and possibly wrong clear values. Will need to back to you later about the errors, but for now we need to hold off on this patch.

Re: [Mesa-dev] [PATCH 2/4] swr: [rasterizer memory] hook up stencil clears for ClearTile

2016-11-28 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 19, 2016, at 9:48 AM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 3/4] swr: [rasterizer memory] only clear up to the LOD size

2016-11-28 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 19, 2016, at 9:48 AM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 1/4] swr: [rasterizer memory] add support for clearing Z32F_X32 and Z16

2016-11-28 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 19, 2016, at 9:48 AM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH] swr: [rasterizer core] fix typo in scissor tile-alignment logic

2016-11-28 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 25, 2016, at 7:35 PM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 4/4] swr: clear every layer of the attached surfaces

2016-11-23 Thread Rowley, Timothy O
Nov 23, 2016, at 2:11 PM, Ilia Mirkin <imir...@alum.mit.edu<mailto:imir...@alum.mit.edu>> wrote: On Wed, Nov 23, 2016 at 3:02 PM, Rowley, Timothy O <timothy.o.row...@intel.com<mailto:timothy.o.row...@intel.com>> wrote: This code seems to assume that all attached buffers have t

Re: [Mesa-dev] [PATCH 4/4] swr: clear every layer of the attached surfaces

2016-11-23 Thread Rowley, Timothy O
This code seems to assume that all attached buffers have the same start layer, and that start will be zero. Maybe it should construct the clearMask inside the layer loop, which would also be a bit clearer than the code you added to drop bits out of the mask? -Tim > On Nov 17, 2016, at 6:51

Re: [Mesa-dev] [PATCH 1/4] swr: [rasterizer core] actually perform clear before store in GetHotTile

2016-11-23 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 17, 2016, at 6:51 PM, Ilia Mirkin > wrote: When switching render target array indexes (as might happen in a GS, or in a future change, with layered

Re: [Mesa-dev] [PATCH 3/4] swr: [rasterizer core] pipe renderTargetArrayIndex through to clears

2016-11-23 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 17, 2016, at 6:51 PM, Ilia Mirkin > wrote: Currently clears only operate on the 0th array index (ignoring surface layout parameters). Instead

Re: [Mesa-dev] [PATCH 5/5] swr: color interpolation is also supposed to get perspective division

2016-11-22 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 21, 2016, at 11:52 AM, Ilia Mirkin > wrote: Signed-off-by: Ilia Mirkin > ---

Re: [Mesa-dev] [PATCH 4/5] swr: add sprite coord enable mask to fs key

2016-11-22 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 21, 2016, at 11:52 AM, Ilia Mirkin > wrote: This fixes gl-coord-replace-doesnt-eliminate-frag-tex-coords Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 3/5] swr: rework vert <-> frag shader linkage logic

2016-11-22 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 21, 2016, at 11:52 AM, Ilia Mirkin > wrote: Fixes a few things: - sprite coords only apply to generic varyings, and are a bitmask - back color only

Re: [Mesa-dev] [PATCH 2/5] swr: flatshading makes color outputs flat, it doesn't affect others

2016-11-22 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 21, 2016, at 11:52 AM, Ilia Mirkin > wrote: We were previously not marking the "regular" flat outputs as flat when flatshading was enabled.

Re: [Mesa-dev] [PATCH 1/5] swr: only broadcast color0 value, not all color values

2016-11-22 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 21, 2016, at 11:52 AM, Ilia Mirkin > wrote: The way that dual-source blending is described for GLES2 is very odd, and we end up with a shader that

Re: [Mesa-dev] [PATCH] swr: don't claim to allow setting layer/viewport from VS

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 20, 2016, at 12:20 PM, Ilia Mirkin > wrote: This may ultimately be possible to support, but for now it's not hooked up and the swr core only supports

Re: [Mesa-dev] [PATCH v3] swr: calculate viewport width/height based on the scale

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 20, 2016, at 10:32 AM, Ilia Mirkin > wrote: The former calculations were for min/max y. The width/height don't take translate into account.

Re: [Mesa-dev] [PATCH] swr: report a reasonable max lod bias

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 19, 2016, at 10:11 AM, Ilia Mirkin > wrote: This is the same value that llvmpipe uses. Since swr uses the same sampler logic, makes sense for this

Re: [Mesa-dev] [PATCH v2 1/6] swr: [rasterizer memory] minify original sizes for block formats

2016-11-21 Thread Rowley, Timothy O
Reviewed-by: Tim Rowley > On Nov 17, 2016, at 10:56 PM, Ilia Mirkin > wrote: There's no guarantee that mip width/height will be a multiple of the compressed block size. Doing a

  1   2   >