Module: Mesa
Branch: master
Commit: 80c3ed147bb0843e176f450bf5af21419d1997f6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=80c3ed147bb0843e176f450bf5af21419d1997f6

Author: Pierre-Eric Pelloux-Prayer <[email protected]>
Date:   Mon Jan 25 16:04:53 2021 +0100

radeonsi/sqtt: fix SQTT bo size overflow

Ported from c40ea24ee009d8c9816ff6327f65be3fbd45deb7

Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8746>

---

 src/gallium/drivers/radeonsi/si_sqtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_sqtt.c 
b/src/gallium/drivers/radeonsi/si_sqtt.c
index 28c08a3a0ba..60e53b5d1ca 100644
--- a/src/gallium/drivers/radeonsi/si_sqtt.c
+++ b/src/gallium/drivers/radeonsi/si_sqtt.c
@@ -50,7 +50,7 @@ si_thread_trace_init_bo(struct si_context *sctx)
    /* Compute total size of the thread trace BO for 4 SEs. */
    size = align64(sizeof(struct ac_thread_trace_info) * 4,
                   1 << SQTT_BUFFER_ALIGN_SHIFT);
-   size += sctx->thread_trace->buffer_size * 4;
+   size += sctx->thread_trace->buffer_size * 4ll;
 
    sctx->thread_trace->bo =
       ws->buffer_create(ws, size, 4096,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to