summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_surface.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-15 23:04:49 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-03-15 23:07:31 -0700
commit44adea1a0975ebad59790b9cfd03439aa44559fc (patch)
treeafa2f5369432209d9efb6e4c6eaf1ba9a285b232 /src/gallium/drivers/r300/r300_surface.c
parent1e56bb890bff5a9750dbd439e91ce03c87a750b8 (diff)
r300-gallium: r500-fs: Setup immediates.
Textures still not working. RS block shenanigans expected.
Diffstat (limited to 'src/gallium/drivers/r300/r300_surface.c')
-rw-r--r--src/gallium/drivers/r300/r300_surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_surface.c b/src/gallium/drivers/r300/r300_surface.c
index a49bec9910..744d60364b 100644
--- a/src/gallium/drivers/r300/r300_surface.c
+++ b/src/gallium/drivers/r300/r300_surface.c
@@ -36,9 +36,9 @@ static void r300_surface_fill(struct pipe_context* pipe,
struct r300_capabilities* caps = r300_screen(pipe->screen)->caps;
struct r300_texture* tex = (struct r300_texture*)dest->texture;
int i;
-
- float r, g, b, a;
+ float r, g, b, a, depth;
unsigned pixpitch = tex->stride / tex->tex.block.size;
+
r = (float)((color >> 16) & 0xff) / 255.0f;
g = (float)((color >> 8) & 0xff) / 255.0f;
b = (float)((color >> 0) & 0xff) / 255.0f;