nv50_query.c revision 857a3294a959015bf893241199f7fd7f7882a6ab
1/* 2 * Copyright 2008 Ben Skeggs 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the 9 * Software is furnished to do so, subject to the following conditions: 10 * 11 * The above copyright notice and this permission notice shall be included in 12 * all copies or substantial portions of the Software. 13 * 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 18 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 19 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 * SOFTWARE. 21 */ 22 23#include "pipe/p_context.h" 24 25#include "nv50_context.h" 26 27static struct pipe_query * 28nv50_query_create(struct pipe_context *pipe, unsigned type) 29{ 30 NOUVEAU_ERR("unimplemented\n"); 31 return NULL; 32} 33 34static void 35nv50_query_destroy(struct pipe_context *pipe, struct pipe_query *q) 36{ 37 NOUVEAU_ERR("unimplemented\n"); 38} 39 40static void 41nv50_query_begin(struct pipe_context *pipe, struct pipe_query *q) 42{ 43 NOUVEAU_ERR("unimplemented\n"); 44} 45 46static void 47nv50_query_end(struct pipe_context *pipe, struct pipe_query *q) 48{ 49 NOUVEAU_ERR("unimplemented\n"); 50} 51 52static boolean 53nv50_query_result(struct pipe_context *pipe, struct pipe_query *q, 54 boolean wait, uint64 *result) 55{ 56 NOUVEAU_ERR("unimplemented\n"); 57 *result = 0xdeadcafe; 58 return TRUE; 59} 60 61void 62nv50_init_query_functions(struct nv50_context *nv50) 63{ 64 nv50->pipe.create_query = nv50_query_create; 65 nv50->pipe.destroy_query = nv50_query_destroy; 66 nv50->pipe.begin_query = nv50_query_begin; 67 nv50->pipe.end_query = nv50_query_end; 68 nv50->pipe.get_query_result = nv50_query_result; 69} 70