mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-11-28 02:54:51 +00:00
add fix for intel compiler unused variable in release builds
This commit is contained in:
parent
56426c8077
commit
e50d06341c
2 changed files with 29 additions and 0 deletions
28
0001-intel-compiler-fix-release-build-unused-variable.patch
Normal file
28
0001-intel-compiler-fix-release-build-unused-variable.patch
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
From b32d3c9251e18c77b4d58db61b43797ffb7b05cf Mon Sep 17 00:00:00 2001
|
||||||
|
From: Dave Airlie <airlied@redhat.com>
|
||||||
|
Date: Wed, 3 Jan 2024 16:31:23 +1000
|
||||||
|
Subject: [PATCH] intel/compiler: fix release build unused variable.
|
||||||
|
|
||||||
|
This is only used in an assert.
|
||||||
|
|
||||||
|
Fixes: 158ac265dfd0 ("intel/fs: Make helpers for saving/restoring instruction order")
|
||||||
|
---
|
||||||
|
src/intel/compiler/brw_fs.cpp | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp
|
||||||
|
index 696b5db8d9d..aa01a2241ce 100644
|
||||||
|
--- a/src/intel/compiler/brw_fs.cpp
|
||||||
|
+++ b/src/intel/compiler/brw_fs.cpp
|
||||||
|
@@ -6834,7 +6834,7 @@ save_instruction_order(const struct cfg_t *cfg)
|
||||||
|
static void
|
||||||
|
restore_instruction_order(struct cfg_t *cfg, fs_inst **inst_arr)
|
||||||
|
{
|
||||||
|
- int num_insts = cfg->last_block()->end_ip + 1;
|
||||||
|
+ ASSERTED int num_insts = cfg->last_block()->end_ip + 1;
|
||||||
|
|
||||||
|
int ip = 0;
|
||||||
|
foreach_block (block, cfg) {
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
|
@ -75,6 +75,7 @@ Source1: Mesa-MLAA-License-Clarification-Email.txt
|
||||||
|
|
||||||
Patch10: gnome-shell-glthread-disable.patch
|
Patch10: gnome-shell-glthread-disable.patch
|
||||||
Patch11: 0001-intel-compiler-reemit-boolean-resolve-for-inverted-i.patch
|
Patch11: 0001-intel-compiler-reemit-boolean-resolve-for-inverted-i.patch
|
||||||
|
Patch12: 0001-intel-compiler-fix-release-build-unused-variable.patch
|
||||||
|
|
||||||
BuildRequires: meson >= 1.2.0
|
BuildRequires: meson >= 1.2.0
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
|
Loading…
Reference in a new issue