[Mesa-dev] [PATCH 2/3] mesa: Introduce enabled bitfield helper functions.

2011-12-29 Thread Mathias Froehlich
Depending on the installed shader type, different arrays are used from gl_array_object. Provide helper functions that compute the bitmask of these arrays that are finally enabled for a given shader type. The will be used in a followup change. Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 2/3] mesa: Introduce enabled bitfield helper functions.

2012-01-11 Thread Mathias Froehlich
Depending on the installed shader type, different arrays are used from gl_array_object. Provide helper functions that compute the bitmask of these arrays that are finally enabled for a given shader type. The will be used in a followup change. Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 0/2] Make a llvmpipe context basically thread safe v2.

2014-08-31 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Hi Jose, This makes llvmpipe thread safe as mandated by the OpenGL standard. The changes replace the use of two global data structures with non global ones. The changes pass piglit as of today without regressions. The patchset now sticks to your

[Mesa-dev] [PATCH 1/2] llvmpipe: Use two LLVMContexts per OpenGL context instead of a global one.

2014-08-31 Thread Mathias . Froehlich
and used for all compiles. One is put into struct draw_llvm and the other one into struct llvmpipe_context. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/gallium/auxiliary/draw/draw_llvm.c| 15 -- src/gallium/auxiliary/draw/draw_llvm.h| 2 ++ src

[Mesa-dev] [PATCH 2/2] llvmpipe: Make a llvmpipe OpenGL context thread safe.

2014-08-31 Thread Mathias . Froehlich
compilation. Only the generated code is deferred until this code is no longer used. This change and the previous one using private LLVMContext instances I can now safely run several independent OpenGL contexts driven by llvmpipe from different threads. Signed-off-by: Mathias Froehlich mathias.froehl

[Mesa-dev] [PATCH] Add support for NV_depth_buffer_float.

2014-09-06 Thread Mathias Froehlich
Hi, Please review: Add support for the unclamped versions of glDepthRange and relatives. Also starting with OpenGL 4.2 the traditional functions for this should no longer clamp the values to [0, 1]. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- docs/GL3.txt

[Mesa-dev] [PATCH 1/4] mesa: Rework depth range setting in preparation for NV_depth_buffer_float.

2014-09-14 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@web.de Factor out some functions that will get additional callers with the implementation of NV_depth_buffer_float. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/main/attrib.c | 2 +- src/mesa/main/depth.c| 66

[Mesa-dev] [PATCH 0/4] Add support for NV_depth_buffer_float v3.

2014-09-14 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net This adds support for NV_depth_buffer_float. Mostly the unclamped depth buffer handling which can be exploited to get logarithmic depth buffer like behavior in a simple way. v2 Readd clamping to the traditional gl entry points. v3 Split the

[Mesa-dev] [PATCH 4/4] mesa: Add support for NV_depth_buffer_float.

2014-09-14 Thread Mathias . Froehlich
this behavior to clamp the arguments. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- docs/relnotes/10.3.html | 1 + src/mapi/glapi/gen/NV_depth_buffer_float.xml | 32 + src/mapi/glapi/gen/gl_API.xml| 2 + src/mesa/drivers/common/meta.c

[Mesa-dev] [PATCH 3/4] gallium: introduce PIPE_CAP_UNCLAMPED_DEPTH_VALUES.

2014-09-14 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net In preparation of NV_depth_buffer_float. Let the driver decide if it could support writing depth values beyond the [0, 1] range. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/gallium/docs/source/screen.rst | 3

[Mesa-dev] [PATCH 2/4] mesa: Add helper function to see if we have a float depth format.

2014-09-14 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Will be used in the implementation of NV_depth_buffer_float. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/main/glformats.c | 18 ++ src/mesa/main/glformats.h | 3 +++ 2 files changed, 21 insertions

[Mesa-dev] [PATCH 3/4] mesa: Handle clip control in meta operations.

2014-10-21 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Restore clip control to the default state if MESA_META_VIEWPORT or MESA_META_DEPTH_TEST is requested. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/common/meta.c | 13 + src/mesa/drivers/common/meta.h

[Mesa-dev] [PATCH 0/4] Implement clip control

2014-10-21 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Hi, The next approach to bring decent depth buffer precision to mesa. The patch series implements ARB_clip_control in mesa and enables the extension for the gallium drivers. Please review. Greetings Mathias Mathias Fröhlich (4): mesa:

[Mesa-dev] [PATCH 2/4] mesa: Implement ARB_clip_control.

2014-10-21 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Implement the mesa parts of ARB_clip_control. So far no driver enables this. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mapi/glapi/gen/ARB_clip_control.xml | 25 +++ src/mapi/glapi/gen/gl_API.xml | 4

[Mesa-dev] [PATCH 1/4] mesa: Refactor viewport transform computation.

2014-10-21 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net This is for preparation of ARB_clip_control. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/dri/i915/i915_state.c| 26 ++--- src/mesa/main/state.c | 9 +++--- src/mesa/main

[Mesa-dev] [PATCH 4/4] gallium: Enable ARB_clip_control for gallium drivers.

2014-10-21 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Gallium should be prepared fine for ARB_clip_control. So enable this and mention it in the release notes. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- docs/GL3.txt| 2 +- docs/relnotes/10.4.html

[Mesa-dev] [PATCH 5/5] gallium: Enable ARB_clip_control for gallium drivers.

2014-10-22 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Gallium should be prepared fine for ARB_clip_control. So enable this and mention it in the release notes. v2: Only enable for drivers announcing the freshly introduced PIPE_CAP_CLIP_HALFZ capability. Signed-off-by: Mathias Froehlich

[Mesa-dev] [PATCH 2/5] mesa: Implement ARB_clip_control.

2014-10-22 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Implement the mesa parts of ARB_clip_control. So far no driver enables this. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mapi/glapi/gen/ARB_clip_control.xml | 25 +++ src/mapi/glapi/gen/gl_API.xml | 4

[Mesa-dev] [PATCH 4/5] gallium: introduce PIPE_CAP_CLIP_HALFZ.

2014-10-22 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net In preparation of ARB_clip_control. Let the driver decide if it supports pipe_rasterizer_state::clip_halfz being set to true. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/gallium/docs/source/screen.rst | 3

[Mesa-dev] [PATCH 3/5] mesa: Handle clip control in meta operations.

2014-10-22 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Restore clip control to the default state if MESA_META_VIEWPORT or MESA_META_DEPTH_TEST is requested. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/common/meta.c | 13 + src/mesa/drivers/common/meta.h

[Mesa-dev] [PATCH 0/5] Implement clip control v2

2014-10-22 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Hi, The next approach to bring decent depth buffer precision to mesa. The patch series implements ARB_clip_control in mesa and enables the extension for the gallium drivers. v2: Only enable on those gallium drivers that already support

[Mesa-dev] [PATCH 1/5] mesa: Refactor viewport transform computation.

2014-10-22 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net This is for preparation of ARB_clip_control. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/dri/i915/i915_state.c| 26 ++--- src/mesa/main/state.c | 9 +++--- src/mesa/main

[Mesa-dev] [PATCH 1/5] mesa: Refactor viewport transform computation.

2014-10-24 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net This is for preparation of ARB_clip_control. v3: Add comments. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/dri/i915/i915_state.c| 26 ++-- src/mesa/main/state.c | 9

[Mesa-dev] [PATCH 5/5] gallium: Enable ARB_clip_control for gallium drivers.

2014-10-24 Thread Mathias . Froehlich
to connect PIPE_CAP_CLIP_HALFZ with ARB_clip_control. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- docs/GL3.txt| 2 +- docs/relnotes/10.4.html | 1 + src/mesa/state_tracker/st_atom_rasterizer.c | 14 +- src/mesa

[Mesa-dev] [PATCH 0/5] Implement clip control v3

2014-10-24 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Hi, The next approach to bring decent depth buffer precision to mesa. The patch series implements ARB_clip_control in mesa and enables the extension for the gallium drivers. v2: Only enable on those gallium drivers that already support

[Mesa-dev] [PATCH 4/5] gallium: introduce PIPE_CAP_CLIP_HALFZ.

2014-10-24 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net In preparation of ARB_clip_control. Let the driver decide if it supports pipe_rasterizer_state::clip_halfz being set to true. v3: Initially enable on ilo. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/gallium/docs/source

[Mesa-dev] [PATCH 2/5] mesa: Implement ARB_clip_control.

2014-10-24 Thread Mathias . Froehlich
_FrontBit update into state.c. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mapi/glapi/gen/ARB_clip_control.xml | 25 +++ src/mapi/glapi/gen/gl_API.xml | 4 +- src/mesa/main/attrib.c | 1 + src/mesa/main/dlist.c | 26

[Mesa-dev] [PATCH 3/5] mesa: Handle clip control in meta operations.

2014-10-24 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Restore clip control to the default state if MESA_META_VIEWPORT or MESA_META_DEPTH_TEST is requested. v3: Handle clip control state with MESA_META_TRANSFORM. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/common

[Mesa-dev] [PATCH] glx: Fix make check.

2014-10-25 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Fixes the link failures with make check. Ok to commit? Signed-off-by: Mathias Froehlich mathias.froehl...@web.de CC: Ian Romanick ian.d.roman...@intel.com --- src/glx/tests/indirect_api.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src

[Mesa-dev] [PATCH] mesa: Add ARB_clip_control.xml to automake.

2014-10-25 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Hi, Adding this makes 'make check' catch failures introduced from within ARB_clip_control.xml earlier. Ok to commit? Mathias Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mapi/glapi/gen/Makefile.am | 1 + 1 file changed, 1

[Mesa-dev] [PATCH] mesa/gallium: Signal _NEW_TRANSFORM from glClipControl.

2014-10-25 Thread Mathias . Froehlich
From: Mathias Fröhlich mathias.froehl...@gmx.net Hi Marek, Did you have something like below in mind? Mathias This removes the need for the gallium rasterizer state to listen to viewport changes. Thanks to Marek Olšák mar...@gmail.com. CC: Marek Olšák mar...@gmail.com Signed-off-by: Mathias

[Mesa-dev] [PATCH] i965: Implement support for ARB_clip_control.

2015-03-31 Thread Mathias . Froehlich
the clip-control and clip-control-depth-precision tests on these two chipsets. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- docs/GL3.txt | 2 +- docs/relnotes/10.6.0.html| 1 + src/mesa/drivers/dri/i965/brw_clip.c | 7

[Mesa-dev] [PATCH 3/4] tnl: Maintain the _WindowMap matrix in TNLcontext.

2015-03-31 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@gmx.net This is the only real user of _WindowMap which has the depth buffer scaling multiplied in. Maintain the _WindowMap of the one and only viewport inside TNLcontext. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa

[Mesa-dev] [PATCH 1/4] i965: Make use of _mesa_get_viewport_xform.

2015-03-31 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@gmx.net Instead of _WindowMap just use the translation and scale of the viewport transform directly. Thereby avoid dividing by _DepthMaxF again. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/dri/i965/brw_sf_state.c

[Mesa-dev] [PATCH 2/4] radeon: Make use of _mesa_get_viewport_xform.

2015-03-31 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@gmx.net Instead of _WindowMap just use the translation and scale of the viewport transform directly. Thereby avoid dividing by _DepthMaxF again. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/drivers/dri/r200/r200_state.c

[Mesa-dev] [PATCH 4/4] mesa: Remove the _WindowMap from gl_viewport_attrib.

2015-03-31 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@gmx.net The _WindowMap can be dropped from gl_viewport_attrib now. Simplify gl_viewport_attrib handling where possible. Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/main/context.c | 12 ++-- src/mesa/main/mtypes.h

[Mesa-dev] [PATCH 0/4] Cleanup viewport handling past clip control.

2015-03-31 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@gmx.net Hi, The series cleans up viewport handling a bit. Make use of the utility functions provided with the clip control implementation in the drivers. Move the _WindowMap matrix into the TNL state which is the only remaining user of that matrix

[Mesa-dev] [PATCH] i965: Flush batchbuffer containing the query on glQueryCounter.

2015-04-12 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@gmx.net Hi all, the attached patch fixes timer queries as noticed with osgviewer. Please review! Greetings and thanks Mathias This change fixes a regression with timer queries introduced with commit 3eb6258. There the pending batchbuffer

[Mesa-dev] [PATCH] mesa: Remove unused variables left over from 107ae27e57d.

2015-04-05 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@gmx.net David, You mean the below. Ok to push? Greetings and Thanks! Mathias Signed-off-by: Mathias Froehlich mathias.froehl...@web.de --- src/mesa/main/viewport.c | 4 1 file changed, 4 deletions(-) diff --git a/src/mesa/main/viewport.c b/src

[Mesa-dev] [PATCH 2/4] radeon: Make use of _mesa_get_viewport_xform v2.

2015-04-02 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@web.de Hi Michael, You mean like this? I did initially preserve the original ordering present in the radeon implementation because I thought it is easier to review then. If it's the other way round, here you are ... Ok, to commit? Thanks Mathias

[Mesa-dev] [PATCH 3/4] tnl: Maintain the _WindowMap matrix in TNLcontext v2.

2015-04-02 Thread Mathias . Froehlich
From: Mathias Froehlich mathias.froehl...@web.de Hi Brian, Thanks for the review! The Patch with unneeded parentheses removed. Ok, to push? Greetings Mathias This is the only real user of _WindowMap which has the depth buffer scaling multiplied in. Maintain the _WindowMap of the one and only

[Mesa-dev] [PATCH 00/31] Make more use of bitmasks v2

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Hi all, following a series with performance improvements for cpu/draw bound applications. This part makes more use of the bitmask/ffs technique for iterating a set of enabled items. The gains are not huge but they are noticable for some of my

[Mesa-dev] [PATCH 23/31] radeon/r200: Use bitmask/ffs to iterate enabled clip planes.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 24/31] i965: Use bitmask/ffs to iterate enabled clip planes.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 26/31] mesa: Use bitmask/ffs to iterate SamplersUsed

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 22/31] mesa: Use bitmask/ffs to iterate enabled clip planes.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 27/31] mesa: Use designated bool value to check texture unit completeness.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich The change helps to use the bitmask/ffs in the next change. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/main/texstate.c | 5 - 1 file changed, 4 insertions(+), 1

[Mesa-dev] [PATCH 18/31] mesa: Remove the linked list of enabled lights

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Clean up after conversion to bitmasks. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/main/context.c | 11 +-- src/mesa/main/enable.c | 4 src/mesa/main/light.c

[Mesa-dev] [PATCH 11/31] mesa: Track enabled lights in a bitmask

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich This enables some optimizations afterwards. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/main/enable.c | 2 ++ src/mesa/main/light.c | 1 + src/mesa/main/mtypes.h | 2 ++ 3

[Mesa-dev] [PATCH 03/31] mesa: Add gl_point_attrib::CoordReplaceBits bitfield.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich The aim is to replace the CoordReplace array by a bitfield. Until all drivers are converted, establish the bitfield in parallel to the CoordReplace array. v2: Fix bitmask logic. Reviewed-by: Brian Paul Reviewed-by: Ian

[Mesa-dev] [PATCH 20/31] mesa: Use bitmask/ffs to build ff fragment shader keys.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. The bitmask used here for iteration is a combination of different enabled masks present for texture units. v2: Use _mesa_bit_scan{,64}

[Mesa-dev] [PATCH 12/31] mesa: Use bitmask/ffs to iterate enabled lights

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces loops that iterate all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 14/31] tnl: Use bitmask/ffs to iterate enabled lights

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces loops that iterate all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 07/31] i915: Convert i915 to use CoordsReplaceBits.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 15/31] nouveau: Use bitmask/ffs to iterate enabled lights

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 10/31] mesa: Rename CoordReplaceBits back to CoordReplace.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich It used to be called like that and fits better with 80 columns. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 04/31] swrast: Convert swrast to use CoordsReplaceBits.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich --- src/mesa/swrast/s_points.c | 4 ++--

[Mesa-dev] [PATCH 02/31] mesa: Make use of _mesa_bit_scan{,64}.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Signed-off-by: Mathias Fröhlich --- src/mesa/main/arrayobj.c | 5 ++--- src/mesa/main/buffers.c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/arrayobj.c

[Mesa-dev] [PATCH 01/31] mesa: Provide _mesa_bit_scan{, 64} similar to gallium.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich The function is yet unused but will be used with the next changes. Signed-off-by: Mathias Fröhlich --- src/mesa/main/imports.h | 24 1 file changed, 24 insertions(+) diff --git

[Mesa-dev] [PATCH 13/31] mesa: Use bitmask/ffs to iterate enabled lights for ff shader keys.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 17/31] mesa: Switch to bitmask based enabled lights in gen_matypes.c

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/x86/gen_matypes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/x86/gen_matypes.c

[Mesa-dev] [PATCH 06/31] r200: convert r200 to use CoordsReplaceBits.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 08/31] i965: Convert i965 to use CoordsReplaceBits.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich --- src/mesa/drivers/dri/i965/brw_sf.c

[Mesa-dev] [PATCH 19/31] mesa: Use bitmask/ffs to build ff vertex shader keys.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. The bitmask used here for iteration is a combination of different enabled masks present for texture units. v2: Use _mesa_bit_scan{,64}

[Mesa-dev] [PATCH 30/31] vbo: Use a bitmask to track the active arrays in vbo_exec*.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich The use of a bitmask makes functions iterating only active attributes less visible in profiles. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 29/31] mesa: Use bitmask/ffs to iterate the active_samplers bitmask.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 09/31] mesa: Remove the now unused CoordsReplace array.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Now that all users are converted, remove the array. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich --- src/mesa/main/mtypes.h | 1 -

[Mesa-dev] [PATCH 05/31] gallium: Convert the state_tracker to use CoordsReplaceBits.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 16/31] radeon/r200: Use bitmask/ffs to iterate enabled lights

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 31/31] vbo: Use a bitmask to track the active arrays in vbo_save*.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich The use of a bitmask makes functions iterating only active attributes less visible in profiles. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 21/31] mesa: Use bitmask/ffs to iterate color material attributes.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 25/31] i965: Use bitmask/ffs to iterate used vertex attributes.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH 28/31] mesa: Use bitmask/ffs to iterate the enabled textures.

2016-06-06 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich

[Mesa-dev] [PATCH] mesa/gallium: Move u_bit_scan{, 64} from gallium to util.

2016-06-09 Thread Mathias . Froehlich
From: Mathias Fröhlich The functions are also useful for mesa. Introduce src/util/bitscan.{h,c}. Move ffs function implementations from src/mesa/main/imports.{h,c}. Move bit scan related functions from src/gallium/auxiliary/util/u_math.h. Merge platform handling with

[Mesa-dev] [PATCH 00/29] Make more use of bitmasks v3

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Hi all, following a series with performance improvements for cpu/draw bound applications. This part makes more use of the bitmask/ffs technique for iterating a set of enabled items. The gains are not huge but they are noticable for some of my

[Mesa-dev] [PATCH 12/29] tnl: Use bitmask/ffs to iterate enabled lights

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces loops that iterate all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of

[Mesa-dev] [PATCH 10/29] mesa: Use bitmask/ffs to iterate enabled lights

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces loops that iterate all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of

[Mesa-dev] [PATCH 02/29] swrast: Convert swrast to use CoordsReplaceBits.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich --- src/mesa/swrast/s_points.c | 4 ++--

[Mesa-dev] [PATCH 06/29] i965: Convert i965 to use CoordsReplaceBits.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich --- src/mesa/drivers/dri/i965/brw_sf.c

[Mesa-dev] [PATCH 07/29] mesa: Remove the now unused CoordsReplace array.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Now that all users are converted, remove the array. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich --- src/mesa/main/mtypes.h | 1 -

[Mesa-dev] [PATCH 26/29] mesa: Use bitmask/ffs to iterate the enabled textures.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 04/29] r200: convert r200 to use CoordsReplaceBits.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 15/29] mesa: Switch to bitmask based enabled lights in gen_matypes.c

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/x86/gen_matypes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesa/x86/gen_matypes.c

[Mesa-dev] [PATCH 18/29] mesa: Use bitmask/ffs to build ff fragment shader keys.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. The bitmask used here for iteration is a combination of different enabled masks present for texture units. v2: Use _mesa_bit_scan{,64}

[Mesa-dev] [PATCH 14/29] radeon/r200: Use bitmask/ffs to iterate enabled lights

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of

[Mesa-dev] [PATCH 16/29] mesa: Remove the linked list of enabled lights

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Clean up after conversion to bitmasks. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/main/context.c | 11 +-- src/mesa/main/enable.c | 4 src/mesa/main/light.c

[Mesa-dev] [PATCH 20/29] mesa: Use bitmask/ffs to iterate enabled clip planes.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 25/29] mesa: Use designated bool value to check texture unit completeness.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich The change helps to use the bitmask/ffs in the next change. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- src/mesa/main/texstate.c | 5 - 1 file changed, 4 insertions(+), 1

[Mesa-dev] [PATCH 22/29] i965: Use bitmask/ffs to iterate enabled clip planes.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 13/29] nouveau: Use bitmask/ffs to iterate enabled lights

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of

[Mesa-dev] [PATCH 05/29] i915: Convert i915 to use CoordsReplaceBits.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 03/29] gallium: Convert the state_tracker to use CoordsReplaceBits.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 17/29] mesa: Use bitmask/ffs to build ff vertex shader keys.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. The bitmask used here for iteration is a combination of different enabled masks present for texture units. v2: Use _mesa_bit_scan{,64}

[Mesa-dev] [PATCH 19/29] mesa: Use bitmask/ffs to iterate color material attributes.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 23/29] i965: Use bitmask/ffs to iterate used vertex attributes.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 21/29] radeon/r200: Use bitmask/ffs to iterate enabled clip planes.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces an iterate and test bit in a bitmask loop by a loop only iterating over the bits set in the bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 11/29] mesa: Use bitmask/ffs to iterate enabled lights for ff shader keys.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich Replaces a loop that iterates all lights and test which of them is enabled by a loop only iterating over the bits set in the enabled bitmask. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of

[Mesa-dev] [PATCH 28/29] vbo: Use a bitmask to track the active arrays in vbo_exec*.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich The use of a bitmask makes functions iterating only active attributes less visible in profiles. v2: Use _mesa_bit_scan{,64} instead of open coding. v3: Use u_bit_scan{,64} instead of _mesa_bit_scan{,64}. Reviewed-by: Brian Paul

[Mesa-dev] [PATCH 08/29] mesa: Rename CoordReplaceBits back to CoordReplace.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich It used to be called like that and fits better with 80 columns. Reviewed-by: Brian Paul Reviewed-by: Ian Romanick Signed-off-by: Mathias Fröhlich ---

[Mesa-dev] [PATCH 01/29] mesa: Add gl_point_attrib::CoordReplaceBits bitfield.

2016-06-13 Thread Mathias . Froehlich
From: Mathias Fröhlich The aim is to replace the CoordReplace array by a bitfield. Until all drivers are converted, establish the bitfield in parallel to the CoordReplace array. v2: Fix bitmask logic. Reviewed-by: Brian Paul Reviewed-by: Ian

  1   2   3   4   5   >