summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/i915/sw
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/i915/sw')
-rw-r--r--src/gallium/winsys/i915/sw/i915_sw_buffer.c15
-rw-r--r--src/gallium/winsys/i915/sw/i915_sw_winsys.h1
2 files changed, 1 insertions, 15 deletions
diff --git a/src/gallium/winsys/i915/sw/i915_sw_buffer.c b/src/gallium/winsys/i915/sw/i915_sw_buffer.c
index df175688861..321ef90d265 100644
--- a/src/gallium/winsys/i915/sw/i915_sw_buffer.c
+++ b/src/gallium/winsys/i915/sw/i915_sw_buffer.c
@@ -4,28 +4,15 @@
static struct i915_winsys_buffer *
i915_sw_buffer_create(struct i915_winsys *iws,
- unsigned size, unsigned alignment,
+ unsigned size,
enum i915_winsys_buffer_type type)
{
struct i915_sw_buffer *buf = CALLOC_STRUCT(i915_sw_buffer);
- char *name;
if (!buf)
return NULL;
- if (type == I915_NEW_TEXTURE) {
- name = "gallium3d_texture";
- } else if (type == I915_NEW_VERTEX) {
- name = "gallium3d_vertex";
- } else if (type == I915_NEW_SCANOUT) {
- name = "gallium3d_scanout";
- } else {
- assert(0);
- name = "gallium3d_unknown";
- }
-
buf->magic = 0xDEAD1337;
- buf->name = name;
buf->type = type;
buf->ptr = CALLOC(size, 1);
diff --git a/src/gallium/winsys/i915/sw/i915_sw_winsys.h b/src/gallium/winsys/i915/sw/i915_sw_winsys.h
index b7b43669f30..cd2eebd1799 100644
--- a/src/gallium/winsys/i915/sw/i915_sw_winsys.h
+++ b/src/gallium/winsys/i915/sw/i915_sw_winsys.h
@@ -44,7 +44,6 @@ struct i915_sw_buffer {
unsigned map_count;
enum i915_winsys_buffer_type type;
enum i915_winsys_buffer_tile tile;
- const char *name;
};
static INLINE struct i915_sw_buffer *