summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/dri/intel
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2008-05-27 19:00:16 +0200
committerJakob Bornecrantz <[email protected]>2008-05-28 13:44:36 +0200
commitcb5e05d99c40d4f7ab1ecbb42a6390caf3966ba4 (patch)
treee4da0fa985f62514b7a75e467feb9dd76cd67e2e /src/gallium/winsys/dri/intel
parent08130512b9961da76a6385403d56387125df5e8c (diff)
i915: Made vertex submission eaven faster
Diffstat (limited to 'src/gallium/winsys/dri/intel')
-rw-r--r--src/gallium/winsys/dri/intel/intel_winsys_pipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/winsys/dri/intel/intel_winsys_pipe.c b/src/gallium/winsys/dri/intel/intel_winsys_pipe.c
index 059b16be3b1..fb8f44c8457 100644
--- a/src/gallium/winsys/dri/intel/intel_winsys_pipe.c
+++ b/src/gallium/winsys/dri/intel/intel_winsys_pipe.c
@@ -224,7 +224,6 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
unsigned tex_usage)
{
const unsigned alignment = 64;
- //int ret;
surf->width = width;
surf->height = height;
@@ -235,7 +234,8 @@ intel_i915_surface_alloc_storage(struct pipe_winsys *winsys,
assert(!surf->buffer);
surf->buffer = winsys->buffer_create(winsys, alignment,
PIPE_BUFFER_USAGE_PIXEL,
- surf->pitch * surf->cpp * height);
+ surf->pitch * surf->cpp * surf->height);
+
if(!surf->buffer)
return -1;
@@ -328,8 +328,8 @@ intel_create_pipe_winsys( int fd, struct _DriFreeSlabManager *fMan )
DRM_BO_FLAG_READ |
DRM_BO_FLAG_WRITE |
DRM_BO_FLAG_MEM_TT,
- 128,
- 6, 120, 32 * 4096, 0,
+ 128 * 4096,
+ 1, 120, 128 * 4096 * 4, 0,
fMan);
}