diff options
author | Eric Anholt <[email protected]> | 2010-09-28 10:43:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-09-28 11:37:08 -0700 |
commit | a32893221ce253da7bb465e0ec9d0df5f7208d8f (patch) | |
tree | 29089780041abb00e713d6e289cfac7e56b46525 /src/mesa/program/sampler.h | |
parent | 723a655ed3f3092f6fa74a903fb774a3cec93b79 (diff) |
mesa: Pull ir_to_mesa's sampler number fetcher out to shared code.
Diffstat (limited to 'src/mesa/program/sampler.h')
-rw-r--r-- | src/mesa/program/sampler.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mesa/program/sampler.h b/src/mesa/program/sampler.h new file mode 100644 index 00000000000..22467e99020 --- /dev/null +++ b/src/mesa/program/sampler.h @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2005-2007 Brian Paul All Rights Reserved. + * Copyright (C) 2008 VMware, Inc. All Rights Reserved. + * Copyright © 2010 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +int +_mesa_get_sampler_uniform_value(class ir_dereference *sampler, + struct gl_shader_program *shader_program, + const struct gl_program *prog); |