[Mesa-dev] [PATCH 4/4] st/mesa: provide the null implementation of bounding box outputs in tcs

Ilia Mirkin imirkin at alum.mit.edu
Sun Aug 28 18:32:21 UTC 2016


Until hardware appears (in a gallium driver) that can make use of the
TCS-outputted gl_BoundingBox, we just request that the variable gets
assigned as a regular patch variable.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---

Note that this passes all "*bounding_box*" tests in gles31-master.txt in dEQP
on a nvc0 driver with geom and tess shaders enabled.

 docs/features.txt                      | 2 +-
 docs/relnotes/12.1.0.html              | 1 +
 src/mesa/state_tracker/st_extensions.c | 3 +++
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/features.txt b/docs/features.txt
index 4c755c6..34e7d74 100644
--- a/docs/features.txt
+++ b/docs/features.txt
@@ -262,7 +262,7 @@ GLES3.2, GLSL ES 3.2:
   GL_OES_draw_elements_base_vertex                      DONE (all drivers)
   GL_OES_geometry_shader                                DONE (i965/gen8+, nvc0, radeonsi)
   GL_OES_gpu_shader5                                    DONE (all drivers that support GL_ARB_gpu_shader5)
-  GL_OES_primitive_bounding_box                         not started
+  GL_OES_primitive_bounding_box                         DONE (nvc0, radeonsi)
   GL_OES_sample_shading                                 DONE (i965, nvc0, r600, radeonsi)
   GL_OES_sample_variables                               DONE (i965, nvc0, r600, radeonsi)
   GL_OES_shader_image_atomic                            DONE (all drivers that support GL_ARB_shader_image_load_store)
diff --git a/docs/relnotes/12.1.0.html b/docs/relnotes/12.1.0.html
index f77ef91..fa0a21d 100644
--- a/docs/relnotes/12.1.0.html
+++ b/docs/relnotes/12.1.0.html
@@ -58,6 +58,7 @@ Note: some of the new features are only available with certain drivers.
 <li>GL_KHR_texture_compression_astc_sliced_3d on i965</li>
 <li>GL_OES_copy_image on nv50, nvc0, r600, radeonsi, softpipe, llvmpipe</li>
 <li>GL_OES_geometry_shader on i965/gen8+, nvc0, radeonsi</li>
+<li>GL_OES_primitive_bounding_box on nvc0, radeonsi</li>
 <li>GL_OES_texture_cube_map_array on i965/gen8+, nvc0, radeonsi</li>
 </ul>
 
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index c7ec10c..a975885 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1224,4 +1224,7 @@ void st_init_extensions(struct pipe_screen *screen,
       extensions->ARB_ES3_1_compatibility &&
       extensions->OES_geometry_shader &&
       extensions->ARB_texture_cube_map_array;
+
+   extensions->OES_primitive_bounding_box = extensions->ARB_ES3_1_compatibility;
+   consts->NoPrimitiveBoundingBoxOutput = true;
 }
-- 
2.7.3



More information about the mesa-dev mailing list