~ubuntu-branches/ubuntu/jaunty/mesa/jaunty

« back to all changes in this revision

Viewing changes to src/mesa/shader/slang/slang_ir.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-23 10:20:24 UTC
  • mfrom: (1.2.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090123102024-1f3kmb3aea7wzk67
Tags: 7.3~rc3-1ubuntu1
* Merge with Debian experimental.
* Drop 102_dont_vblank.patch, since the new drm code in the kernel
  fixes the bugs that it worked around.
* Bump the build-dependency of libdrm to 2.4.4. It's the first version
  with necessary changes to build this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Mesa 3-D graphics library
3
 
 * Version:  7.1
4
3
 *
5
4
 * Copyright (C) 2005-2008  Brian Paul   All Rights Reserved.
 
5
 * Copyright (C) 2009  VMware, Inc.   All Rights Reserved.
6
6
 *
7
7
 * Permission is hereby granted, free of charge, to any person obtaining a
8
8
 * copy of this software and associated documentation files (the "Software"),
216
216
}
217
217
 
218
218
 
 
219
/**
 
220
 * Allocate IR storage for a texture sampler.
 
221
 * \param sampNum  the sampler number/index
 
222
 * \param texTarget  one of TEXTURE_x_INDEX values
 
223
 * \param size  number of samplers (in case of sampler array)
 
224
 */
 
225
slang_ir_storage *
 
226
_slang_new_ir_storage_sampler(GLint sampNum, GLuint texTarget, GLint size)
 
227
{
 
228
   slang_ir_storage *st;
 
229
   assert(texTarget < NUM_TEXTURE_TARGETS);
 
230
   st = _slang_new_ir_storage(PROGRAM_SAMPLER, sampNum, size);
 
231
   if (st) {
 
232
      st->TexTarget = texTarget;
 
233
   }
 
234
   return st;
 
235
}
 
236
 
 
237
 
 
238
 
219
239
/* XXX temporary function */
220
240
void
221
241
_slang_copy_ir_storage(slang_ir_storage *dst, const slang_ir_storage *src)