3 * GLX Hardware Device Driver for Sun Creator/Creator3D
4 * Copyright (C) 2001 David S. Miller
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * DAVID MILLER, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
20 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
22 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 * David S. Miller <davem@redhat.com>
28 #include "main/glheader.h"
29 #include "main/mtypes.h"
32 /* No texture unit, all software. */
33 /* XXX this function isn't needed since _mesa_init_driver_functions()
34 * will make all these assignments.
36 void ffbDDInitTexFuncs(GLcontext
*ctx
)
39 ctx->Driver.ChooseTextureFormat = _mesa_choose_tex_format;
40 ctx->Driver.TexImage1D = _mesa_store_teximage1d;
41 ctx->Driver.TexImage2D = _mesa_store_teximage2d;
42 ctx->Driver.TexImage3D = _mesa_store_teximage3d;
43 ctx->Driver.TexSubImage1D = _mesa_store_texsubimage1d;
44 ctx->Driver.TexSubImage2D = _mesa_store_texsubimage2d;
45 ctx->Driver.TexSubImage3D = _mesa_store_texsubimage3d;
46 ctx->Driver.CopyTexImage1D = _swrast_copy_teximage1d;
47 ctx->Driver.CopyTexImage2D = _swrast_copy_teximage2d;
48 ctx->Driver.CopyTexSubImage1D = _swrast_copy_texsubimage1d;
49 ctx->Driver.CopyTexSubImage2D = _swrast_copy_texsubimage2d;
50 ctx->Driver.CopyTexSubImage3D = _swrast_copy_texsubimage3d;
51 ctx->Driver.TestProxyTexImage = _mesa_test_proxy_teximage;