summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-08-21 22:01:04 -0700
committerVinson Lee <[email protected]>2010-08-21 22:01:04 -0700
commit4a06525737c17126243a48741c87298ad1ffd076 (patch)
treef5a51a97ad36bbac6a4a4f333d5fcb4fcbee6896 /src/gallium
parent2506b32eecbaacf5609f0c4654a9f90c72ce0c81 (diff)
nv50: Silence incompatible pointer type initialization warning.
Silence the following GCC warning. warning: initialization from incompatible pointer type
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv50/nv50_push.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_push.c b/src/gallium/drivers/nv50/nv50_push.c
index 6a2ffd5a3c8..57c0010bf4d 100644
--- 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);