[Mesa-dev] [PATCH 1/2] meta/blit: Don't blend integer values during MSAA resolves
Matt Turner
mattst88 at gmail.com
Thu May 5 17:20:24 UTC 2016
On Wed, May 4, 2016 at 4:22 PM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> ---
> src/mesa/drivers/common/meta_blit.c | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
> index 6761238..bb79c46 100644
> --- a/src/mesa/drivers/common/meta_blit.c
> +++ b/src/mesa/drivers/common/meta_blit.c
> @@ -458,8 +458,17 @@ setup_glsl_msaa_blit_shader(struct gl_context *ctx,
> int step;
>
> if (src_datatype == GL_INT || src_datatype == GL_UNSIGNED_INT) {
> - merge_function =
> - "gvec4 merge(gvec4 a, gvec4 b) { return (a >> gvec4(1)) + (b >> gvec4(1)) + (a & b & gvec4(1)); }\n";
> + /* From the OpenGL ES 3.2 spec section 16.2.1:
> + *
> + * "If the source formats are integer types or stencil values,
> + * a single sample’s value is selected for each pixel."
Let's replace the smart quote with a regular old single quote.
More information about the mesa-dev
mailing list