panfrost: Note glDrawRangeElements underflow
Hopefully this helps someone wiring up robustness later on. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21891>
This commit is contained in:

committed by
Marge Bot

parent
c832831a6f
commit
2bab56737c
@@ -127,6 +127,12 @@ panfrost_get_index_buffer_bounded(struct panfrost_batch *batch,
|
||||
struct panfrost_context *ctx = batch->ctx;
|
||||
bool needs_indices = true;
|
||||
|
||||
/* Note: if index_bounds_valid is set but the bounds are wrong, page faults
|
||||
* (at least on Mali-G52) can be triggered an underflow reading varyings.
|
||||
* Providing invalid index bounds in GLES is implementation-defined
|
||||
* behaviour. This should be fine for now but this needs to be revisited when
|
||||
* wiring up robustness later.
|
||||
*/
|
||||
if (info->index_bounds_valid) {
|
||||
*min_index = info->min_index;
|
||||
*max_index = info->max_index;
|
||||
|
Reference in New Issue
Block a user