mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 13:50:11 +01:00
svga: fix printing 64-bit value for 32-bit build
Closes: #12449, #12451 Fixes:b13e2a495e("svga: add svga_resource_create_with_modifiers() function") Signed-off-by: Brian Paul <brian.paul@broadcom.com> Reviewed-by: Neha Bhende <neha.Bhende@broadcom.com> Reviewed-by: Neha Bhende <None> (cherry picked from commit24107f2f67) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33113>
This commit is contained in:
parent
e791098f2e
commit
a4d35d8263
2 changed files with 3 additions and 2 deletions
|
|
@ -1694,7 +1694,7 @@
|
||||||
"description": "svga: fix printing 64-bit value for 32-bit build",
|
"description": "svga: fix printing 64-bit value for 32-bit build",
|
||||||
"nominated": false,
|
"nominated": false,
|
||||||
"nomination_type": 2,
|
"nomination_type": 2,
|
||||||
"resolution": 4,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "b13e2a495e9e3da56add7d852ca01b2cd7eef52d",
|
"because_sha": "b13e2a495e9e3da56add7d852ca01b2cd7eef52d",
|
||||||
"notes": null
|
"notes": null
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include "util/u_debug.h"
|
#include "util/u_debug.h"
|
||||||
|
|
||||||
#include "svga_resource.h"
|
#include "svga_resource.h"
|
||||||
|
|
@ -61,7 +62,7 @@ svga_resource_create_with_modifiers(struct pipe_screen *screen,
|
||||||
* to deal with here.
|
* to deal with here.
|
||||||
*/
|
*/
|
||||||
if (count > 0 && modifiers != NULL && modifiers[0] != 0) {
|
if (count > 0 && modifiers != NULL && modifiers[0] != 0) {
|
||||||
debug_printf("vmware: unexpected format modifier 0x%lx\n",
|
debug_printf("vmware: unexpected format modifier 0x%" PRIx64 "\n",
|
||||||
modifiers[0]);
|
modifiers[0]);
|
||||||
}
|
}
|
||||||
return svga_resource_create(screen, templat);
|
return svga_resource_create(screen, templat);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue