summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/swr_resource.h
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-04-18 18:10:39 -0500
committerTim Rowley <[email protected]>2016-04-20 09:57:55 -0500
commit3bbe8a09eaf95548313db13b4e56dbdd35d2755e (patch)
treeff6f7df0d233f9cdb0966df3e06c43c520361ee5 /src/gallium/drivers/swr/swr_resource.h
parent2ac2ecdd6c407e6d731474572193326844571f5e (diff)
swr: fix resource backed constant buffers
Code was using an incorrect address for the base pointer. v2: use swr_resource_data() utility function. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94979 Reviewed-by: Bruce Cherniak <[email protected]> Tested-by: Markus Wick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/swr_resource.h')
-rw-r--r--src/gallium/drivers/swr/swr_resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_resource.h b/src/gallium/drivers/swr/swr_resource.h
index 59cf0284461..00001e94f79 100644
--- a/src/gallium/drivers/swr/swr_resource.h
+++ b/src/gallium/drivers/swr/swr_resource.h
@@ -85,7 +85,7 @@ swr_resource_is_texture(const struct pipe_resource *resource)
}
-static INLINE void *
+static INLINE uint8_t *
swr_resource_data(struct pipe_resource *resource)
{
struct swr_resource *swr_r = swr_resource(resource);