~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/glsl/ir_clone.cpp

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "main/compiler.h"
26
26
#include "ir.h"
27
27
#include "glsl_types.h"
28
 
extern "C" {
29
28
#include "program/hash_table.h"
30
 
}
31
29
 
32
30
/**
33
31
 * Duplicate an IR variable
47
45
   var->centroid = this->centroid;
48
46
   var->invariant = this->invariant;
49
47
   var->interpolation = this->interpolation;
50
 
   var->array_lvalue = this->array_lvalue;
51
48
   var->location = this->location;
52
49
   var->warn_extension = this->warn_extension;
53
50
   var->origin_upper_left = this->origin_upper_left;
54
51
   var->pixel_center_integer = this->pixel_center_integer;
55
52
   var->explicit_location = this->explicit_location;
 
53
   var->has_initializer = this->has_initializer;
 
54
   var->depth_layout = this->depth_layout;
56
55
 
57
56
   var->num_state_slots = this->num_state_slots;
58
57
   if (this->state_slots) {
71
70
   if (this->constant_value)
72
71
      var->constant_value = this->constant_value->clone(mem_ctx, ht);
73
72
 
 
73
   if (this->constant_initializer)
 
74
      var->constant_initializer =
 
75
         this->constant_initializer->clone(mem_ctx, ht);
 
76
 
74
77
   if (ht) {
75
78
      hash_table_insert(ht, var, (void *)const_cast<ir_variable *>(this));
76
79
   }
222
225
   new_tex->type = this->type;
223
226
 
224
227
   new_tex->sampler = this->sampler->clone(mem_ctx, ht);
225
 
   new_tex->coordinate = this->coordinate->clone(mem_ctx, ht);
 
228
   if (this->coordinate)
 
229
      new_tex->coordinate = this->coordinate->clone(mem_ctx, ht);
226
230
   if (this->projector)
227
231
      new_tex->projector = this->projector->clone(mem_ctx, ht);
228
232
   if (this->shadow_comparitor) {
240
244
      break;
241
245
   case ir_txl:
242
246
   case ir_txf:
 
247
   case ir_txs:
243
248
      new_tex->lod_info.lod = this->lod_info.lod->clone(mem_ctx, ht);
244
249
      break;
245
250
   case ir_txd: