lp_rast_priv.h revision 39be50dcdebe6bcbb48cb6aa8ac151eee811acb1
1ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca/**************************************************************************
2ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca *
3ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * Copyright 2009 VMware, Inc.
4ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * All Rights Reserved.
5ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca *
6ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * Permission is hereby granted, free of charge, to any person obtaining a
7ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * copy of this software and associated documentation files (the
8ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * "Software"), to deal in the Software without restriction, including
9ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * without limitation the rights to use, copy, modify, merge, publish,
10ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * distribute, sub license, and/or sell copies of the Software, and to
11ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * permit persons to whom the Software is furnished to do so, subject to
12ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * the following conditions:
13ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca *
14ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * The above copyright notice and this permission notice (including the
15ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * next paragraph) shall be included in all copies or substantial portions
16ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * of the Software.
17ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca *
18ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
22ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca *
26ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca **************************************************************************/
27ee3383bc5ab81ff12d9faa675c1c38683300ce68José Fonseca
28e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell#ifndef LP_RAST_PRIV_H
29e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell#define LP_RAST_PRIV_H
30e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell
31a1af8eec66c5f7ec421e8011b41c1a7c36319f9fJosé Fonseca#include "os/os_thread.h"
325e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca#include "util/u_format.h"
335e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca#include "gallivm/lp_bld_debug.h"
34e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell#include "lp_rast.h"
350639765b2850739af1678f10fc0c5706d5827776Brian Paul#include "lp_scene.h"
360639765b2850739af1678f10fc0c5706d5827776Brian Paul#include "lp_texture.h"
372797f2bf57562c95a601a67edca3089641215cc4Brian Paul#include "lp_tile_soa.h"
3839be50dcdebe6bcbb48cb6aa8ac151eee811acb1José Fonseca#include "lp_limits.h"
393a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul
403a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul
41aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paulstruct lp_rasterizer;
42a6676d896ed18426ed3d7e6340347974c1694ca2José Fonseca
43a9be9cd8be0fac4be5d65430749666d2204b79a4Brian Paul
44a9be9cd8be0fac4be5d65430749666d2204b79a4Brian Paul/**
453a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul * Per-thread rasterization state
46a9be9cd8be0fac4be5d65430749666d2204b79a4Brian Paul */
473a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paulstruct lp_rasterizer_task
48a9be9cd8be0fac4be5d65430749666d2204b79a4Brian Paul{
49a9be9cd8be0fac4be5d65430749666d2204b79a4Brian Paul   unsigned x, y;          /**< Pos of this tile in framebuffer, in pixels */
503a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul
510639765b2850739af1678f10fc0c5706d5827776Brian Paul   uint8_t *color_tiles[PIPE_MAX_COLOR_BUFS];
520639765b2850739af1678f10fc0c5706d5827776Brian Paul   uint8_t *depth_tile;
530639765b2850739af1678f10fc0c5706d5827776Brian Paul
543a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul   const struct lp_rast_state *current_state;
55aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul
56aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul   /** "back" pointer */
57aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul   struct lp_rasterizer *rast;
58aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul
59aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul   /** "my" index */
60aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul   unsigned thread_index;
61aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul
62aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul   pipe_semaphore work_ready;
63aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul   pipe_semaphore work_done;
643a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul};
653a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul
663a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul
673a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul/**
683a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul * This is the state required while rasterizing tiles.
693a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul * Note that this contains per-thread information too.
703a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul * The tile size is TILE_SIZE x TILE_SIZE pixels.
713a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul */
723a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paulstruct lp_rasterizer
733a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul{
74bc04ae21c10bedcc75d3483784d3eaf7bf090f55Brian Paul   boolean exit_flag;
75e0e2008f1dcd73a59a184e0ef4c1dd77ac2a1cbfKeith Whitwell
76a9be9cd8be0fac4be5d65430749666d2204b79a4Brian Paul   /* Framebuffer stuff
77a9be9cd8be0fac4be5d65430749666d2204b79a4Brian Paul    */
785fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   struct {
795fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell      void *map;
800639765b2850739af1678f10fc0c5706d5827776Brian Paul      unsigned tiles_per_row;
810639765b2850739af1678f10fc0c5706d5827776Brian Paul      unsigned blocksize;
825fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell      enum pipe_format format;
835fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   } cbuf[PIPE_MAX_COLOR_BUFS];
845fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell
855fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   struct {
865fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell      uint8_t *map;
875fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell      unsigned stride;
885fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell      unsigned blocksize;
895fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   } zsbuf;
90e0e2008f1dcd73a59a184e0ef4c1dd77ac2a1cbfKeith Whitwell
91e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell   struct {
925fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell      unsigned nr_cbufs;
93e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell      unsigned clear_color;
94e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell      unsigned clear_depth;
95e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell      char clear_stencil;
96e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell   } state;
973199c6e764c20c69a76c561b9f4b89a23e5a97f5Keith Whitwell
98663750d5564a225b4720f7ee8bea93ffb309fc88Keith Whitwell   /** The incoming queue of scenes ready to rasterize */
99663750d5564a225b4720f7ee8bea93ffb309fc88Keith Whitwell   struct lp_scene_queue *full_scenes;
1005fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell
1015fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   /**
1025fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell    * The outgoing queue of processed scenes to return to setup module
1035fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell    *
1045fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell    * XXX: while scenes are per-context but the rasterizer is
1055fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell    * (potentially) shared, these empty scenes should be returned to
1065fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell    * the context which created them rather than retained here.
1075fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell    */
108663750d5564a225b4720f7ee8bea93ffb309fc88Keith Whitwell   struct lp_scene_queue *empty_scenes;
1092bce5c195f94e2cce8f67c6a8066b0ae408487ceBrian Paul
110663750d5564a225b4720f7ee8bea93ffb309fc88Keith Whitwell   /** The scene currently being rasterized by the threads */
111663750d5564a225b4720f7ee8bea93ffb309fc88Keith Whitwell   struct lp_scene *curr_scene;
1122bce5c195f94e2cce8f67c6a8066b0ae408487ceBrian Paul
1133a06c113c76355fc9622adfe7565c18d9787e9a8Brian Paul   /** A task object for each rasterization thread */
11439be50dcdebe6bcbb48cb6aa8ac151eee811acb1José Fonseca   struct lp_rasterizer_task tasks[LP_MAX_THREADS];
115aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul
116aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul   unsigned num_threads;
11739be50dcdebe6bcbb48cb6aa8ac151eee811acb1José Fonseca   pipe_thread threads[LP_MAX_THREADS];
118aab1ceceecbd6449eebce7f5f5b356b1a51552e7Brian Paul
1192bce5c195f94e2cce8f67c6a8066b0ae408487ceBrian Paul   /** For synchronizing the rasterization threads */
1202bce5c195f94e2cce8f67c6a8066b0ae408487ceBrian Paul   pipe_barrier barrier;
121e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell};
122e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell
123ab76b2a8b896edc1e972de108d044b70310b4324José Fonseca
1241c9db3c57f1538e21b839df0989b958be3465a36Brian Paulvoid lp_rast_shade_quads( struct lp_rasterizer_task *task,
125ab76b2a8b896edc1e972de108d044b70310b4324José Fonseca                          const struct lp_rast_shader_inputs *inputs,
126ab76b2a8b896edc1e972de108d044b70310b4324José Fonseca                          unsigned x, unsigned y,
127ab9438193083b7f9a3180cb9cea45e269131048aBrian Paul                          int32_t c1, int32_t c2, int32_t c3);
128ab76b2a8b896edc1e972de108d044b70310b4324José Fonseca
1292797f2bf57562c95a601a67edca3089641215cc4Brian Paul
1302797f2bf57562c95a601a67edca3089641215cc4Brian Paul/**
1310639765b2850739af1678f10fc0c5706d5827776Brian Paul * Get the pointer to a 4x4 depth/stencil block.
1320639765b2850739af1678f10fc0c5706d5827776Brian Paul * We'll map the z/stencil buffer on demand here.
1330639765b2850739af1678f10fc0c5706d5827776Brian Paul * Note that this may be called even when there's no z/stencil buffer - return
1340639765b2850739af1678f10fc0c5706d5827776Brian Paul * NULL in that case.
1355e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca * \param x, y location of 4x4 block in window coords
1365e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca */
1375e6a9005100ec2636ce9734a5e4535216494cf60José Fonsecastatic INLINE void *
1380639765b2850739af1678f10fc0c5706d5827776Brian Paullp_rast_get_depth_block_pointer(const struct lp_rasterizer *rast,
1390639765b2850739af1678f10fc0c5706d5827776Brian Paul                                unsigned x, unsigned y)
1405e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca{
1410639765b2850739af1678f10fc0c5706d5827776Brian Paul   void *depth;
1425fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell
1435e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca   assert((x % TILE_VECTOR_WIDTH) == 0);
1445e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca   assert((y % TILE_VECTOR_HEIGHT) == 0);
1455fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell
1460639765b2850739af1678f10fc0c5706d5827776Brian Paul   assert(rast->zsbuf.map || !rast->curr_scene->fb.zsbuf);
1470639765b2850739af1678f10fc0c5706d5827776Brian Paul
1485fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   if (!rast->zsbuf.map)
149ba33fed6106609ed04612b46011e28fab69d2310José Fonseca      return NULL;
1505fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell
1515fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   depth = (rast->zsbuf.map +
1525fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell            rast->zsbuf.stride * y +
1535fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell            rast->zsbuf.blocksize * x * TILE_VECTOR_HEIGHT);
1545fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell
1555e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca   assert(lp_check_alignment(depth, 16));
1565e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca   return depth;
1575e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca}
1585e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca
1595e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca
1600639765b2850739af1678f10fc0c5706d5827776Brian Paul/**
1610639765b2850739af1678f10fc0c5706d5827776Brian Paul * Get the pointer to a 4x4 color block (within a 64x64 tile).
1620639765b2850739af1678f10fc0c5706d5827776Brian Paul * We'll map the color buffer on demand here.
1630639765b2850739af1678f10fc0c5706d5827776Brian Paul * Note that this may be called even when there's no color buffers - return
1640639765b2850739af1678f10fc0c5706d5827776Brian Paul * NULL in that case.
1650639765b2850739af1678f10fc0c5706d5827776Brian Paul * \param x, y location of 4x4 block in window coords
1660639765b2850739af1678f10fc0c5706d5827776Brian Paul */
1670639765b2850739af1678f10fc0c5706d5827776Brian Paulstatic INLINE uint8_t *
1680639765b2850739af1678f10fc0c5706d5827776Brian Paullp_rast_get_color_block_pointer(struct lp_rasterizer_task *task,
1690639765b2850739af1678f10fc0c5706d5827776Brian Paul                                unsigned buf, unsigned x, unsigned y)
1700639765b2850739af1678f10fc0c5706d5827776Brian Paul{
1710639765b2850739af1678f10fc0c5706d5827776Brian Paul   unsigned px, py, pixel_offset;
1720639765b2850739af1678f10fc0c5706d5827776Brian Paul   uint8_t *color;
1730639765b2850739af1678f10fc0c5706d5827776Brian Paul
1740639765b2850739af1678f10fc0c5706d5827776Brian Paul   assert((x % TILE_VECTOR_WIDTH) == 0);
1750639765b2850739af1678f10fc0c5706d5827776Brian Paul   assert((y % TILE_VECTOR_HEIGHT) == 0);
1760639765b2850739af1678f10fc0c5706d5827776Brian Paul
1770639765b2850739af1678f10fc0c5706d5827776Brian Paul   color = task->color_tiles[buf];
1780639765b2850739af1678f10fc0c5706d5827776Brian Paul   assert(color);
1790639765b2850739af1678f10fc0c5706d5827776Brian Paul
1800639765b2850739af1678f10fc0c5706d5827776Brian Paul   px = x % TILE_SIZE;
1810639765b2850739af1678f10fc0c5706d5827776Brian Paul   py = y % TILE_SIZE;
1820639765b2850739af1678f10fc0c5706d5827776Brian Paul   pixel_offset = tile_pixel_offset(px, py, 0);
1830639765b2850739af1678f10fc0c5706d5827776Brian Paul
1840639765b2850739af1678f10fc0c5706d5827776Brian Paul   color = color + pixel_offset;
1850639765b2850739af1678f10fc0c5706d5827776Brian Paul
1860639765b2850739af1678f10fc0c5706d5827776Brian Paul   assert(lp_check_alignment(color, 16));
1870639765b2850739af1678f10fc0c5706d5827776Brian Paul   return color;
1880639765b2850739af1678f10fc0c5706d5827776Brian Paul}
1890639765b2850739af1678f10fc0c5706d5827776Brian Paul
1900639765b2850739af1678f10fc0c5706d5827776Brian Paul
1915e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca
1925e6a9005100ec2636ce9734a5e4535216494cf60José Fonseca/**
1932797f2bf57562c95a601a67edca3089641215cc4Brian Paul * Shade all pixels in a 4x4 block.  The fragment code omits the
1942797f2bf57562c95a601a67edca3089641215cc4Brian Paul * triangle in/out tests.
1952797f2bf57562c95a601a67edca3089641215cc4Brian Paul * \param x, y location of 4x4 block in window coords
1962797f2bf57562c95a601a67edca3089641215cc4Brian Paul */
1972797f2bf57562c95a601a67edca3089641215cc4Brian Paulstatic INLINE void
1981c9db3c57f1538e21b839df0989b958be3465a36Brian Paullp_rast_shade_quads_all( struct lp_rasterizer_task *task,
1992797f2bf57562c95a601a67edca3089641215cc4Brian Paul                         const struct lp_rast_shader_inputs *inputs,
2002797f2bf57562c95a601a67edca3089641215cc4Brian Paul                         unsigned x, unsigned y )
2012797f2bf57562c95a601a67edca3089641215cc4Brian Paul{
2021c9db3c57f1538e21b839df0989b958be3465a36Brian Paul   struct lp_rasterizer *rast = task->rast;
2031c9db3c57f1538e21b839df0989b958be3465a36Brian Paul   const struct lp_rast_state *state = task->current_state;
2042797f2bf57562c95a601a67edca3089641215cc4Brian Paul   uint8_t *color[PIPE_MAX_COLOR_BUFS];
2052797f2bf57562c95a601a67edca3089641215cc4Brian Paul   void *depth;
2060639765b2850739af1678f10fc0c5706d5827776Brian Paul   unsigned i;
2072797f2bf57562c95a601a67edca3089641215cc4Brian Paul
2082797f2bf57562c95a601a67edca3089641215cc4Brian Paul   /* color buffer */
2095fe2ce28b6e9fba181c13c6f49b57b3dd68fe88eKeith Whitwell   for (i = 0; i < rast->state.nr_cbufs; i++)
2100639765b2850739af1678f10fc0c5706d5827776Brian Paul      color[i] = lp_rast_get_color_block_pointer(task, i, x, y);
2110639765b2850739af1678f10fc0c5706d5827776Brian Paul
2120639765b2850739af1678f10fc0c5706d5827776Brian Paul   depth = lp_rast_get_depth_block_pointer(rast, x, y);
2130639765b2850739af1678f10fc0c5706d5827776Brian Paul
2140639765b2850739af1678f10fc0c5706d5827776Brian Paul   /* run shader on 4x4 block */
2150639765b2850739af1678f10fc0c5706d5827776Brian Paul   state->jit_function[RAST_WHOLE]( &state->jit_context,
2160639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    x, y,
2170639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    inputs->facing,
2180639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    inputs->a0,
2190639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    inputs->dadx,
2200639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    inputs->dady,
2210639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    color,
2220639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    depth,
2230639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    INT_MIN, INT_MIN, INT_MIN,
2240639765b2850739af1678f10fc0c5706d5827776Brian Paul                                    NULL, NULL, NULL );
2252797f2bf57562c95a601a67edca3089641215cc4Brian Paul}
2262797f2bf57562c95a601a67edca3089641215cc4Brian Paul
2272797f2bf57562c95a601a67edca3089641215cc4Brian Paul
228e529170c11d3cb5812aabeff0a6ee2d7a2ea66f2Keith Whitwell#endif
229