projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lima/ppir: enable vectorize optimization
[mesa.git]
/
src
/
gallium
/
drivers
/
i915
/
i915_state_dynamic.c
diff --git
a/src/gallium/drivers/i915/i915_state_dynamic.c
b/src/gallium/drivers/i915/i915_state_dynamic.c
index 1c29e8ae671110fd5ade228d48769d73491ae792..434b09d4e0e3b63b3de40e18b7228f5649318262 100644
(file)
--- a/
src/gallium/drivers/i915/i915_state_dynamic.c
+++ b/
src/gallium/drivers/i915/i915_state_dynamic.c
@@
-213,7
+213,8
@@
static void upload_STIPPLE(struct i915_context *i915)
/* I915_NEW_RASTERIZER
*/
/* I915_NEW_RASTERIZER
*/
- st[1] |= i915->rasterizer->st;
+ if (i915->rasterizer)
+ st[1] |= i915->rasterizer->st;
/* I915_NEW_STIPPLE
*/
/* I915_NEW_STIPPLE
*/
@@
-307,7
+308,7
@@
static void update_dynamic(struct i915_context *i915)
{
int i;
{
int i;
- for (i = 0; i <
Elements
(atoms); i++)
+ for (i = 0; i <
ARRAY_SIZE
(atoms); i++)
if (i915->dirty & atoms[i]->dirty)
atoms[i]->update(i915);
}
if (i915->dirty & atoms[i]->dirty)
atoms[i]->update(i915);
}