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 4050cd4ac44f2420f0e65c9f3f5749f5e8f0dd06..434b09d4e0e3b63b3de40e18b7228f5649318262 100644
(file)
--- a/
src/gallium/drivers/i915/i915_state_dynamic.c
+++ b/
src/gallium/drivers/i915/i915_state_dynamic.c
@@
-46,7
+46,7
@@
* (active) state every time a 4kb boundary is crossed.
*/
* (active) state every time a 4kb boundary is crossed.
*/
-static
INLINE
void set_dynamic(struct i915_context *i915,
+static
inline
void set_dynamic(struct i915_context *i915,
unsigned offset,
const unsigned state)
{
unsigned offset,
const unsigned state)
{
@@
-60,7
+60,7
@@
static INLINE void set_dynamic(struct i915_context *i915,
-static
INLINE
void set_dynamic_array(struct i915_context *i915,
+static
inline
void set_dynamic_array(struct i915_context *i915,
unsigned offset,
const unsigned *src,
unsigned dwords)
unsigned offset,
const unsigned *src,
unsigned dwords)
@@
-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);
}