mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 16:40:13 +01:00
gallium: Drop software-only primitive restart support.
The drivers not flagging primitive restart support are r300 swtcl, svga, nv30, and vc4. The point of primitive restart is to slightly reduce draw call overhead for apps by batching multiple draws. If we do an extra pass to read the index buffer and split back into multiple draws, we've entirely missed the point. This is particularly bad for drivers that otherwise have hardware IB reads, where the readback is probably uncached. Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
4ddc25a8d4
commit
bcb722d830
1 changed files with 2 additions and 3 deletions
|
|
@ -714,9 +714,8 @@ void st_init_extensions(struct pipe_screen *screen,
|
|||
#endif
|
||||
}
|
||||
|
||||
extensions->NV_primitive_restart = GL_TRUE;
|
||||
if (!screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
|
||||
consts->PrimitiveRestartInSoftware = GL_TRUE;
|
||||
if (screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
|
||||
extensions->NV_primitive_restart = GL_TRUE;
|
||||
}
|
||||
|
||||
/* ARB_color_buffer_float. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue