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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/svga/svga_state_tss.c

  • 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:
24
24
 **********************************************************/
25
25
 
26
26
#include "util/u_inlines.h"
 
27
#include "util/u_memory.h"
27
28
#include "pipe/p_defines.h"
28
29
#include "util/u_math.h"
29
30
 
62
63
};
63
64
 
64
65
 
65
 
static int
 
66
static enum pipe_error
66
67
update_tss_binding(struct svga_context *svga, 
67
68
                   unsigned dirty )
68
69
{
249
250
 
250
251
#define EMIT_TS(svga, unit, val, token, fail)                           \
251
252
do {                                                                    \
 
253
   assert(unit < Elements(svga->state.hw_draw.ts));                     \
 
254
   assert(SVGA3D_TS_##token < Elements(svga->state.hw_draw.ts[unit]));  \
252
255
   if (svga->state.hw_draw.ts[unit][SVGA3D_TS_##token] != val) {        \
253
256
      svga_queue_tss( &queue, unit, SVGA3D_TS_##token, val );           \
254
257
      svga->state.hw_draw.ts[unit][SVGA3D_TS_##token] = val;            \
258
261
#define EMIT_TS_FLOAT(svga, unit, fvalue, token, fail)                  \
259
262
do {                                                                    \
260
263
   unsigned val = fui(fvalue);                                          \
 
264
   assert(unit < Elements(svga->state.hw_draw.ts));                     \
 
265
   assert(SVGA3D_TS_##token < Elements(svga->state.hw_draw.ts[unit]));  \
261
266
   if (svga->state.hw_draw.ts[unit][SVGA3D_TS_##token] != val) {        \
262
267
      svga_queue_tss( &queue, unit, SVGA3D_TS_##token, val );           \
263
268
      svga->state.hw_draw.ts[unit][SVGA3D_TS_##token] = val;            \
279
284
}
280
285
 
281
286
 
282
 
static int
 
287
static enum pipe_error
283
288
update_tss(struct svga_context *svga, 
284
289
           unsigned dirty )
285
290
{
331
336
      SVGA_FIFOCommitAll( svga->swc );
332
337
   }
333
338
 
334
 
   return 0;
 
339
   return PIPE_OK;
335
340
 
336
341
fail:
337
342
   /* XXX: need to poison cached hardware state on failure to ensure