summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_context.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-02-15 00:04:57 -0500
committerRob Clark <[email protected]>2015-02-21 17:11:02 -0500
commite17437386c1bf715b6b241bd9de3a583103f851b (patch)
treeaa7a3c48f16afd40923278109d480d564479bf0c /src/gallium/drivers/freedreno/freedreno_context.c
parent68552266535747bad1eff34d856c43158398b9bf (diff)
freedreno: implement fence
I never actually implemented the stubbed out fence stuff back in the early days. Fix that. We'll need a few libdrm_freedreno changes to handle timeout properly, so ignore that for now to avoid a libdrm_freedreno dependency bump. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_context.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c
index f7e63fdb2d4..79a27fe0e15 100644
--- a/src/gallium/drivers/freedreno/freedreno_context.c
+++ b/src/gallium/drivers/freedreno/freedreno_context.c
@@ -28,6 +28,7 @@
#include "freedreno_context.h"
#include "freedreno_draw.h"
+#include "freedreno_fence.h"
#include "freedreno_program.h"
#include "freedreno_resource.h"
#include "freedreno_texture.h"
@@ -125,16 +126,10 @@ static void
fd_context_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence,
unsigned flags)
{
- DBG("fence=%p", fence);
-
-#if 0
- if (fence) {
- fd_fence_ref(ctx->screen->fence.current,
- (struct fd_fence **)fence);
- }
-#endif
-
fd_context_render(pctx);
+
+ if (fence)
+ *fence = fd_fence_create(pctx);
}
void