From: Antia Puentes
From the ARB_internalformat_query2 spec:
"If the particular and combination do not make
sense, or if a particular type of is not supported by the
implementation the "unsupported" answer should be given. This is not an
error."
This function
At this point, all uses have been replaced by the more general hook
QueryInternalFormat, introduced by ARB_internalformat_query2.
---
src/mesa/drivers/common/driverfuncs.c | 1 -
src/mesa/main/dd.h| 18 --
src/mesa/main/formatquery.c | 14
Use QueryInternalFormat instead of QuerySamplesForFormat to obtain the
highest supported sample. QuerySamplesForFormat is to be removed.
---
src/mesa/main/multisample.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/multisample.c
From: Antia Puentes
---
src/mesa/main/extensions_table.h | 1 +
src/mesa/main/mtypes.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h
index aeccb01..0d3e635 100644
---
The previous code for SAMPLES and NUM_SAMPLE_COUNTS is reused as a private
function.
---
src/mesa/state_tracker/st_cb_texture.c | 2 +-
src/mesa/state_tracker/st_format.c | 38 --
src/mesa/state_tracker/st_format.h | 8 +++
3 files changed, 40
From: Antia Puentes
Checks that the 'resource', as defined by the ARB_internalformat_query2
specification, is supported by the implementation for those 'pnames'
that require this check.
---
src/mesa/main/formatquery.c | 91 -
1
From: Alejandro Piñeiro
From arb_internalformat_query2 spec:
" If is not color-renderable, depth-renderable, or
stencil-renderable (as defined in section 4.4.4), or if
does not support multiple samples (ie other than
TEXTURE_2D_MULTISAMPLE,
---
src/mesa/main/teximage.c | 18 ++
src/mesa/main/teximage.h | 4
2 files changed, 22 insertions(+)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 250d758..4cca396 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -256,6
From: Alejandro Piñeiro
From arb_internalformat_query2 spec:
"IMAGE_FORMAT_COMPATIBILITY_TYPE: The matching criteria use for the
resource when used as an image textures is returned in
. This is equivalent to calling GetTexParameter with
set to
From: Antia Puentes
---
src/mesa/main/formatquery.c | 30 +++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index cf9290f..acf907e 100644
--- a/src/mesa/main/formatquery.c
From: Antia Puentes
It will be used by the ARB_internalformat_query2 implementation to
implement mipmap related queries.
---
src/mesa/main/genmipmap.c | 16
src/mesa/main/genmipmap.h | 3 +++
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git
From: Alejandro Piñeiro
Implemented by calling GetIntegerv with the equivalent pname and
handling individually the exceptions related to dimensions.
All those pnames are used to get the maximum value for each dimension
of the given target. The only difference between this
From: Antia Puentes
It will be used by the ARB_internalformat_query2 implementation to
implement mipmap related queries.
---
src/mesa/main/genmipmap.c | 34 +-
src/mesa/main/genmipmap.h | 3 +++
2 files changed, 24 insertions(+), 13
From: Alejandro Piñeiro
It is implemented combining the values returned by calls to the 32-bit
query _mesa_GetInternalformati32v.
The main reason is simplicity. The other option would be C how we
implemented the support of GL_MAX_{WIDTH/HEIGHT/DEPTH} and GL_SAMPLES.
From: Antia Puentes
---
src/mesa/main/formatquery.c | 22 +++---
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index acf907e..f0ea210 100644
--- a/src/mesa/main/formatquery.c
+++
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- FRAMEBUFFER_RENDERABLE: The support for rendering to the resource via
framebuffer attachment is returned in .
- FRAMEBUFFER_RENDERABLE_LAYERED: The support for layered rendering to
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- CLEAR_BUFFER: The support for using the resource with ClearBuffer*Data
commands is returned in .
Possible values returned are FULL_SUPPORT, CAVEAT_SUPPORT, or NONE.
If the resource
From: Alejandro Piñeiro
In order to allow to be used on ARB_internalformat_query2 implementation.
---
src/mesa/main/texparam.c | 32
src/mesa/main/texparam.h | 3 +++
2 files changed, 19 insertions(+), 16 deletions(-)
diff --git
From: Alejandro Piñeiro
It discards out the targets and internalformats that explicitly
mention (per-spec) that doesn't support filter types other than
NEAREST or NEAREST_MIPMAP_NEAREST. Those are:
* Texture buffers target
* Multisample targets
* Any integer
These basically reuse the default implementation of GL_READ_PIXELS_TYPE.
---
src/mesa/main/formatquery.c | 14 +-
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 2551476..158b908 100644
---
From: Antia Puentes
---
src/mesa/drivers/dri/i965/intel_extensions.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c
b/src/mesa/drivers/dri/i965/intel_extensions.c
index 889f7cb..4392112 100644
---
This is supported since very early version of OpenGL, but we still call the
driver to give it the opportunity to report caveat or no support.
---
src/mesa/main/formatquery.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/formatquery.c
---
src/mesa/main/formatquery.c | 27 +--
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 1b98b82..fc8c10f 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -596,9
This pname is tricky. The spec states that an internal format should be
returned, that is compatible with the passed internal format, and has
at least the same precision. There is no clear API to resolve this.
The closest we have (and what other drivers (i.e, NVidia proprietary) do,
is to return
We call the driver to provide its preferred type, but also provide a
default implementation that selects a generic type based on the passed
internal format.
---
src/mesa/main/formatquery.c | 25 +
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- COLOR_ENCODING: The color encoding for the resource is returned in
. Possible values for color buffers are LINEAR or SRGB,
for linear or sRGB-encoded color components, respectively. For
---
src/mesa/main/formatquery.c | 23 ++-
1 file changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index 0f63259..2551476 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -652,6
From: Antia Puentes
The new pnames accepted by the function are:
- INTERNALFORMAT_RED_SIZE
- INTERNALFORMAT_GREEN_SIZE
- INTERNALFORMAT_BLUE_SIZE
- INTERNALFORMAT_ALPHA_SIZE
- INTERNALFORMAT_DEPTH_SIZE
-
From: Antia Puentes
From the ARB_internalformat_query2 spec:
"- INTERNALFORMAT_RED_SIZE
- INTERNALFORMAT_GREEN_SIZE
- INTERNALFORMAT_BLUE_SIZE
- INTERNALFORMAT_ALPHA_SIZE
- INTERNALFORMAT_DEPTH_SIZE
- INTERNALFORMAT_STENCIL_SIZE
-
---
src/mesa/main/formatquery.c | 15 ++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index da65624..1a3bdbd 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -580,6 +580,10 @@
From: Antia Puentes
The new pnames accepted by the function are:
- INTERNALFORMAT_RED_SIZE
- INTERNALFORMAT_GREEN_SIZE
- INTERNALFORMAT_BLUE_SIZE
- INTERNALFORMAT_ALPHA_SIZE
- INTERNALFORMAT_DEPTH_SIZE
-
From: Antia Puentes
It will be used by the ARB_internalformat_query2 implementation
to check if the target is valid for those that are said
in the spec that should return the same values than the
'glGetTexLevelParameter{if}v' function:
- INTERNALFORMAT_RED_SIZE
-
From: Alejandro Piñeiro
It just does a wrapping on the existing 32-bit GetInternalformativ.
We will maintain the 32-bit query as default as it is likely that
it would be the one most used.
---
src/mesa/main/formatquery.c | 8 +++-
1 file changed, 7 insertions(+), 1
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST: The support for using the resource
both as a source for texture sampling while it is bound as a buffer for
depth test is written to . For example, a
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- IMAGE_TEXEL_SIZE: The size of a texel when the resource when used as
an image texture is returned in . This is the value from the
/Size/ column in Table 3.22. If the resource is not
From: Antia Puentes
Specifically MIPMAP, MANUAL_GENERATE_MIPMAP and AUTO_GENERATE_MIPMAP
queries.
From the ARB_internalformat_query2 specification:
"- MIPMAP: If the resource supports mipmaps, TRUE is returned in .
If the resource is not supported, or if mipmaps
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- TEXTURE_COMPRESSED: If is a compressed format
that is supported for this type of resource, TRUE is returned in
. If the internal format is not compressed, or the type of
resource
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- TEXTURE_SHADOW: The support for using the resource with shadow samplers
is written to .
- TEXTURE_GATHER: The support for using the resource with texture gather
operations is
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- VERTEX_TEXTURE: The support for using the resource as a source for
texture sampling in a vertex shader is written to .
- TESS_CONTROL_TEXTURE: The support for using the resource as a
From: Antia Puentes
It will be used by the ARB_internalformat_query2 implementation to
implement the VIEW_COMPATIBILITY_CLASS query.
---
src/mesa/main/textureview.c | 12
src/mesa/main/textureview.h | 8
2 files changed, 12 insertions(+), 8
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- SRGB_DECODE_ARB: The support for toggling whether sRGB decode happens at
sampling time (see EXT/ARB_texture_sRGB_decode) for the resource is
returned in .
Possible values returned
From: Antia Puentes
It will be used by the ARB_internalformat_query2 implementation to
implement the IMAGE_COMPATIBILITY_CLASS query.
---
src/mesa/main/shaderimage.c | 45 +
src/mesa/main/shaderimage.h | 6 ++
2 files
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- SRGB_READ: The support for converting from sRGB colorspace on read
operations (see section 3.9.18) from the resource is returned in
.
Possible values returned are FULL_SUPPORT,
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- SHADER_IMAGE_LOAD: The support for using the resource with image load
operations in shaders is written to .
In this case the is the value of the parameter
that would be passed
From: Antia Puentes
From the ARB_internalformat_query2 specification:
"- TEXTURE_VIEW: The support for using the resource with the TextureView
command is returned in .
Possible values returned are FULL_SUPPORT, CAVEAT_SUPPORT, or NONE.
If the resource
From: Antia Puentes
It will be used by the ARB_internalformat_query2 implementation
to implement queries related to the ARB_shader_image_load_store
extension.
---
src/mesa/main/shaderimage.c | 13 +
src/mesa/main/shaderimage.h | 8
2 files changed, 13
Currently, the number of integers returned in the response to
GetInternalFormativ is being tracked by a 'count' variable.
This is so only the modified elements from the temporary buffer are copied into
the original user buffer.
However, with the introduction of ARB_internalformat_query2, keeping
I am actually wondering how well that would work for d3d11.
d3d11 just has AllMemoryBarrier, DeviceMemoryBarrier plus
GroupMemoryBarrier - and for each of them also a "WithGroupSync"
version. Hmm.
Roland
Am 19.01.2016 um 03:30 schrieb Ilia Mirkin:
> Signed-off-by: Ilia Mirkin
This is designed to map the GLSL intrinsics. Should one have a desire
to also support d3d11, one could figure out what the overlap is and
rejigger the arguments so that both sets of desires are expressible. I
glanced at SM5 sync before doing this, and TBH I couldn't really make
sense of it:
101 - 149 of 149 matches
Mail list logo