projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2506b32
)
nv50: Silence incompatible pointer type initialization warning.
author
Vinson Lee
<vlee@vmware.com>
Sun, 22 Aug 2010 05:01:04 +0000
(22:01 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 22 Aug 2010 05:01:04 +0000
(22:01 -0700)
Silence the following GCC warning.
warning: initialization from incompatible pointer type
src/gallium/drivers/nv50/nv50_push.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv50/nv50_push.c
b/src/gallium/drivers/nv50/nv50_push.c
index 6a2ffd5a3c8e90d548c94bc3ac5d400bda6063fe..57c0010bf4d214606b34e76f3accf4d4f5a48280 100644
(file)
--- a/
src/gallium/drivers/nv50/nv50_push.c
+++ b/
src/gallium/drivers/nv50/nv50_push.c
@@
-108,8
+108,9
@@
emit_vertex(struct push_context *ctx, unsigned n)
int i;
if (ctx->edgeflag_attr < 16) {
- float *edgeflag = (uint8_t *)ctx->attr[ctx->edgeflag_attr].map +
- ctx->attr[ctx->edgeflag_attr].stride * n;
+ float *edgeflag = (float *)
+ ((uint8_t *)ctx->attr[ctx->edgeflag_attr].map +
+ ctx->attr[ctx->edgeflag_attr].stride * n);
if (*edgeflag != ctx->edgeflag) {
BEGIN_RING(chan, tesla, NV50TCL_EDGEFLAG_ENABLE, 1);