mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
glthread: don't unroll draws using user VBOs with GLES
The unrolling uses glBegin, which is unsupported by GLES and the GL dispatch fails. Fixes:50d791ca73- glthread: add a vertex upload path that unrolls indices for glDrawElements Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26916> (cherry picked from commit56b4d199a0)
This commit is contained in:
parent
6c3a6a9c0f
commit
ee4740fe29
2 changed files with 3 additions and 2 deletions
|
|
@ -224,7 +224,7 @@
|
|||
"description": "glthread: don't unroll draws using user VBOs with GLES",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "50d791ca73e52c678cee8a84e607ff810d834689",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -813,7 +813,8 @@ should_convert_to_begin_end(struct gl_context *ctx, unsigned count,
|
|||
* Others prevent syncing, such as disallowing buffer objects because we
|
||||
* can't map them without syncing.
|
||||
*/
|
||||
return util_is_vbo_upload_ratio_too_large(count, num_upload_vertices) &&
|
||||
return ctx->API == API_OPENGL_COMPAT &&
|
||||
util_is_vbo_upload_ratio_too_large(count, num_upload_vertices) &&
|
||||
instance_count == 1 && /* no instancing */
|
||||
vao->CurrentElementBufferName == 0 && /* only user indices */
|
||||
!ctx->GLThread._PrimitiveRestart && /* no primitive restart */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue