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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
_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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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}
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
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
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
---
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
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
---
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 ++--
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
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
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
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
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
---
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
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}
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
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
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 -
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
---
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
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
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
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
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
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
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
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
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
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 ++--
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
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 -
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
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
---
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
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}
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
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
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
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
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
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
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
---
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
---
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}
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
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
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
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
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
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
---
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 - 100 of 408 matches
Mail list logo