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
nv30: don't assert when running out of registers
[android-x86/external-mesa.git]
/
src
/
gallium
/
drivers
/
nouveau
/
nv30
/
nvfx_vertprog.c
diff --git
a/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c
b/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c
index
7ce51a1
..
b39c4b7
100644
(file)
--- a/
src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c
+++ b/
src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c
@@
-69,9
+69,8
@@
temp(struct nvfx_vpc *vpc)
{
int idx = ffs(~vpc->r_temps) - 1;
- if (idx < 0) {
+ if (idx < 0
|| (!vpc->is_nv4x && idx >= 16)
) {
NOUVEAU_ERR("out of temps!!\n");
- assert(0);
return nvfx_reg(NVFXSR_TEMP, 0);
}