diff options
author | Christoph Bumiller <[email protected]> | 2010-12-10 20:13:40 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-12-10 20:20:34 +0100 |
commit | 51f22689a419a8a13ca105e8ffc905b5fadea0db (patch) | |
tree | 309fedef234bc3320f4b6017f1d5f9061f2861de /src/gallium/drivers/nvc0/nvc0_pc.h | |
parent | e32ec112785d9ea111a9de0087f2f487cadc9051 (diff) |
nvc0: fix branching ops
- bra is PC relative
- jump to else condition was inverted
- handle integer comparisons
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_pc.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_pc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_pc.h b/src/gallium/drivers/nvc0/nvc0_pc.h index b48b0b1fbad..df0314965a3 100644 --- a/src/gallium/drivers/nvc0/nvc0_pc.h +++ b/src/gallium/drivers/nvc0/nvc0_pc.h @@ -425,7 +425,7 @@ struct nv_basic_block { uint priv; /* reset to 0 after you're done */ uint pass_seq; - uint32_t emit_pos; /* position, size in emitted code */ + uint32_t emit_pos; /* position, size in emitted code (in bytes) */ uint32_t emit_size; uint32_t live_set[NV_PC_MAX_VALUES / 32]; @@ -457,8 +457,8 @@ struct nv_pc { unsigned immd_count; uint32_t *emit; - unsigned emit_size; - unsigned emit_pos; + uint32_t emit_size; + uint32_t emit_pos; void *reloc_entries; unsigned num_relocs; |