summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2008-05-29 12:44:53 +0200
committerJakob Bornecrantz <[email protected]>2008-05-29 13:10:12 +0200
commit79b67d8408d1ba5b2232791ae35e731a5953b52d (patch)
treebfbcc2518b51371ccb9a5406312da58d50357801 /src/gallium/winsys
parent837601af522b9d1e687040015672769392884fa1 (diff)
i915: Remove last usage of surface_alloc_storage
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/dri/intel/intel_winsys_pipe.c31
1 files changed, 1 insertions, 30 deletions
diff --git a/src/gallium/winsys/dri/intel/intel_winsys_pipe.c b/src/gallium/winsys/dri/intel/intel_winsys_pipe.c
index b3e5f29c3e5..a7f3047352c 100644
--- a/src/gallium/winsys/dri/intel/intel_winsys_pipe.c
+++ b/src/gallium/winsys/dri/intel/intel_winsys_pipe.c
@@ -232,36 +232,7 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
unsigned flags,
unsigned tex_usage)
{
- const unsigned alignment = 64;
- assert(!surf->buffer);
-#if 0
- surf->width = width;
- surf->height = round_up(height, 8);
- surf->format = format;
- surf->cpp = pf_get_size(format);
- surf->pitch = power_of_two(MAX2(width * surf->cpp, 512));
-
- surf->buffer = winsys->buffer_create(winsys, 2*4096,
- PIPE_BUFFER_USAGE_PIXEL,
- surf->pitch * surf->height);
-
- surf->pitch = surf->pitch / surf->cpp;
- surf->height = height;
-#else
- surf->width = width;
- surf->height = height;
- surf->format = format;
- surf->cpp = pf_get_size(format);
- surf->pitch = round_up(width, alignment / surf->cpp);
-
- surf->buffer = winsys->buffer_create(winsys, alignment,
- PIPE_BUFFER_USAGE_PIXEL,
- surf->pitch * surf->cpp * surf->height);
-#endif
- if(!surf->buffer)
- return -1;
-
- return 0;
+ return -1;
}