projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cea9f9
)
iris: move variable to the scope where it is being used
author
Tapani Pälli
<tapani.palli@intel.com>
Tue, 2 Apr 2019 06:12:21 +0000
(09:12 +0300)
committer
Tapani Pälli
<tapani.palli@intel.com>
Thu, 4 Apr 2019 04:43:20 +0000
(
04:43
+0000)
iris_upload_border_color is passed a pointer which points to
variable that is introduced in a different scope.
CID:
1444296
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_state.c
b/src/gallium/drivers/iris/iris_state.c
index 970d2190a098c3724200bce48c73e283ee6e3c82..591c63593151500170ef5bda680e165c83b9de23 100644
(file)
--- a/
src/gallium/drivers/iris/iris_state.c
+++ b/
src/gallium/drivers/iris/iris_state.c
@@
-1532,8
+1532,8
@@
iris_upload_sampler_states(struct iris_context *ice, gl_shader_stage stage)
* back into A.
*/
union pipe_color_union *color = &state->border_color;
+ union pipe_color_union tmp;
if (tex) {
- union pipe_color_union tmp;
enum pipe_format internal_format = tex->res->internal_format;
if (util_format_is_alpha(internal_format)) {