OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nv50,nvc0: fix the max_vertices=0 case
[android-x86/external-mesa.git]
/
src
/
gallium
/
drivers
/
nouveau
/
nvc0
/
nvc0_program.c
diff --git
a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
index
d73e0c4
..
aba9511
100644
(file)
--- a/
src/gallium/drivers/nouveau/nvc0/nvc0_program.c
+++ b/
src/gallium/drivers/nouveau/nvc0/nvc0_program.c
@@
-393,7
+393,7
@@
nvc0_gp_gen_header(struct nvc0_program *gp, struct nv50_ir_prog_info *info)
break;
}
- gp->hdr[4] =
MIN2(info->prop.gp.maxVertices
, 1024);
+ gp->hdr[4] =
CLAMP(info->prop.gp.maxVertices, 1
, 1024);
return nvc0_vtgp_gen_header(gp, info);
}