13464ebd5Sriastradh/************************************************************************** 23464ebd5Sriastradh * 33464ebd5Sriastradh * Copyright 2010 VMware, Inc. 43464ebd5Sriastradh * All Rights Reserved. 53464ebd5Sriastradh * 63464ebd5Sriastradh * Permission is hereby granted, free of charge, to any person obtaining a 73464ebd5Sriastradh * copy of this software and associated documentation files (the 83464ebd5Sriastradh * "Software"), to deal in the Software without restriction, including 93464ebd5Sriastradh * without limitation the rights to use, copy, modify, merge, publish, 103464ebd5Sriastradh * distribute, sub license, and/or sell copies of the Software, and to 113464ebd5Sriastradh * permit persons to whom the Software is furnished to do so, subject to 123464ebd5Sriastradh * the following conditions: 133464ebd5Sriastradh * 143464ebd5Sriastradh * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 153464ebd5Sriastradh * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 163464ebd5Sriastradh * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 173464ebd5Sriastradh * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, 183464ebd5Sriastradh * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 193464ebd5Sriastradh * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 203464ebd5Sriastradh * USE OR OTHER DEALINGS IN THE SOFTWARE. 213464ebd5Sriastradh * 223464ebd5Sriastradh * The above copyright notice and this permission notice (including the 233464ebd5Sriastradh * next paragraph) shall be included in all copies or substantial portions 243464ebd5Sriastradh * of the Software. 253464ebd5Sriastradh * 263464ebd5Sriastradh **************************************************************************/ 273464ebd5Sriastradh 283464ebd5Sriastradh 293464ebd5Sriastradh#include "pipe/p_screen.h" 303464ebd5Sriastradh#include "util/u_debug.h" 313464ebd5Sriastradh#include "sp_fence.h" 323464ebd5Sriastradh 333464ebd5Sriastradh 343464ebd5Sriastradhstatic void 353464ebd5Sriastradhsoftpipe_fence_reference(struct pipe_screen *screen, 363464ebd5Sriastradh struct pipe_fence_handle **ptr, 373464ebd5Sriastradh struct pipe_fence_handle *fence) 383464ebd5Sriastradh{ 393464ebd5Sriastradh *ptr = fence; 403464ebd5Sriastradh} 413464ebd5Sriastradh 423464ebd5Sriastradh 437ec681f3Smrgstatic bool 443464ebd5Sriastradhsoftpipe_fence_finish(struct pipe_screen *screen, 4501e04c3fSmrg struct pipe_context *ctx, 463464ebd5Sriastradh struct pipe_fence_handle *fence, 473464ebd5Sriastradh uint64_t timeout) 483464ebd5Sriastradh{ 493464ebd5Sriastradh assert(fence); 503464ebd5Sriastradh return TRUE; 513464ebd5Sriastradh} 523464ebd5Sriastradh 533464ebd5Sriastradh 543464ebd5Sriastradhvoid 553464ebd5Sriastradhsoftpipe_init_screen_fence_funcs(struct pipe_screen *screen) 563464ebd5Sriastradh{ 573464ebd5Sriastradh screen->fence_reference = softpipe_fence_reference; 583464ebd5Sriastradh screen->fence_finish = softpipe_fence_finish; 593464ebd5Sriastradh} 60