i965: use pack/unpackDouble lowering
[mesa.git] / src / gallium / drivers / ilo / ilo_context.c
index 5993591aca243a6f833c197b142f86d72ca65a23..6bcd0bcb8f57a4b44c7b75c95624dcedbf8a02ab 100644 (file)
@@ -62,8 +62,9 @@ ilo_flush(struct pipe_context *pipe,
          (flags & PIPE_FLUSH_END_OF_FRAME) ? "frame end" : "user request");
 
    if (f) {
-      *f = (struct pipe_fence_handle *)
-         ilo_fence_create(pipe->screen, ilo->cp->last_submitted_bo);
+      struct pipe_screen *screen = pipe->screen;
+      screen->fence_reference(screen, f, NULL);
+      *f = ilo_screen_fence_create(pipe->screen, ilo->cp->last_submitted_bo);
    }
 }
 
@@ -134,7 +135,7 @@ ilo_context_destroy(struct pipe_context *pipe)
 }
 
 static struct pipe_context *
-ilo_context_create(struct pipe_screen *screen, void *priv)
+ilo_context_create(struct pipe_screen *screen, void *priv, unsigned flags)
 {
    struct ilo_screen *is = ilo_screen(screen);
    struct ilo_context *ilo;
@@ -188,8 +189,9 @@ ilo_context_create(struct pipe_screen *screen, void *priv)
     * These must be called last as u_upload/u_blitter are clients of the pipe
     * context.
     */
-   ilo->uploader = u_upload_create(&ilo->base, 1024 * 1024, 16,
-         PIPE_BIND_CONSTANT_BUFFER | PIPE_BIND_INDEX_BUFFER);
+   ilo->uploader = u_upload_create(&ilo->base, 1024 * 1024,
+         PIPE_BIND_CONSTANT_BUFFER | PIPE_BIND_INDEX_BUFFER,
+                                   PIPE_USAGE_STREAM);
    if (!ilo->uploader) {
       ilo_context_destroy(&ilo->base);
       return NULL;