projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6d52f2
)
ilo: Remove max_threads dead code path.
author
Vinson Lee
<vlee@freedesktop.org>
Wed, 26 Jun 2013 03:55:40 +0000
(20:55 -0700)
committer
Chia-I Wu
<olvaffe@gmail.com>
Wed, 26 Jun 2013 13:51:07 +0000
(21:51 +0800)
max_threads cannot be greater than 28. It is either 21 or 28.
Fixes "Logically dead code" defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_gpe_gen6.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_gpe_gen6.c
b/src/gallium/drivers/ilo/ilo_gpe_gen6.c
index 9c88b0a5b319263e27e410ff9b2a74a2d7d44ca2..4fb3507917253b99529ad7cb9a38f265f5b36835 100644
(file)
--- a/
src/gallium/drivers/ilo/ilo_gpe_gen6.c
+++ b/
src/gallium/drivers/ilo/ilo_gpe_gen6.c
@@
-1304,9
+1304,6
@@
ilo_gpe_init_gs_cso_gen6(const struct ilo_dev_info *dev,
max_threads = 21;
}
- if (max_threads > 28)
- max_threads = 28;
-
dw2 = GEN6_GS_SPF_MODE;
dw4 = vue_read_len << GEN6_GS_URB_READ_LENGTH_SHIFT |