[Mesa-dev] [PATCH 0.1/2] mesa: Add new variables in gl_context to store sample number layout
Anuj Phogat
anuj.phogat at gmail.com
Tue Sep 23 17:38:21 PDT 2014
Variables are used in later patches to implement
EXT_framebuffer_multisample_blit_scaled extension.
Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/main/mtypes.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 0d50be8..1cb3461 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3608,6 +3608,15 @@ struct gl_constants
GLint MaxDepthTextureSamples;
GLint MaxIntegerSamples;
+ /**
+ * Layout of sample numbers in a rectangular grid roughly corresponding
+ * to real sample locations within a pixel. Used by
+ * GL_EXT_texture_multisample_blit_scaled implementation.
+ */
+ GLchar* sample_map_2x;
+ GLchar* sample_map_4x;
+ GLchar* sample_map_8x;
+
/** GL_ARB_shader_atomic_counters */
GLuint MaxAtomicBufferBindings;
GLuint MaxAtomicBufferSize;
--
1.9.3
More information about the mesa-dev
mailing list