diff options
author | Chih-Wei Huang <[email protected]> | 2013-06-27 14:31:05 -0700 |
---|---|---|
committer | Vadim Girlin <[email protected]> | 2013-07-12 01:11:04 +0400 |
commit | 1d9271a95c055855f04d57fa9a9eb06cd075e9ec (patch) | |
tree | 955c8ded95f3ede19b3ace12ed62990941914f36 /src/gallium/drivers/r600/sb | |
parent | 758ac6f91894c105c83a193e8f4f6ead06962949 (diff) |
r600g/sb: Fix Android build v2
Add the sb CXX files to the Android Makefile and also stop using some
c++11 features.
v2 (Vadim Girlin): use &bc[0] instead of bc.begin()
Diffstat (limited to 'src/gallium/drivers/r600/sb')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_bc.h | 4 | ||||
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_ra_init.cpp | 2 | ||||
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_valtable.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_bc.h b/src/gallium/drivers/r600/sb/sb_bc.h index 224301fc6a6..0e951920e73 100644 --- a/src/gallium/drivers/r600/sb/sb_bc.h +++ b/src/gallium/drivers/r600/sb/sb_bc.h @@ -847,7 +847,7 @@ public: unsigned ndw() { return bc.size(); } void write_data(uint32_t* dst) { - memcpy(dst, bc.data(), 4 * bc.size()); + std::copy(bc.begin(), bc.end(), dst); } void align(unsigned a) { @@ -871,7 +871,7 @@ public: } unsigned get_pos() { return pos; } - uint32_t *data() { return bc.data(); } + uint32_t *data() { return &bc[0]; } bytecode & operator <<(uint32_t v) { if (pos == ndw()) { diff --git a/src/gallium/drivers/r600/sb/sb_ra_init.cpp b/src/gallium/drivers/r600/sb/sb_ra_init.cpp index bfe5ab9a1bc..24b24a0bde3 100644 --- a/src/gallium/drivers/r600/sb/sb_ra_init.cpp +++ b/src/gallium/drivers/r600/sb/sb_ra_init.cpp @@ -680,7 +680,7 @@ void ra_split::split_vec(vvec &vv, vvec &v1, vvec &v2, bool allow_swz) { value *t; vvec::iterator F = - allow_swz ? find(v2.begin(), v2.end(), o) : v2.end(); + allow_swz ? std::find(v2.begin(), v2.end(), o) : v2.end(); if (F != v2.end()) { t = *(v1.begin() + (F - v2.begin())); diff --git a/src/gallium/drivers/r600/sb/sb_valtable.cpp b/src/gallium/drivers/r600/sb/sb_valtable.cpp index 5e6aca04928..00aee66f25b 100644 --- a/src/gallium/drivers/r600/sb/sb_valtable.cpp +++ b/src/gallium/drivers/r600/sb/sb_valtable.cpp @@ -207,7 +207,7 @@ void value_table::get_values(vvec& v) { for(vt_table::iterator I = hashtable.begin(), E = hashtable.end(); I != E; ++I) { - T = copy(I->begin(), I->end(), T); + T = std::copy(I->begin(), I->end(), T); } } @@ -368,7 +368,7 @@ inline bool sb_bitset::set_chk(unsigned id, bool bit) { } void sb_bitset::clear() { - memset(data.data(), 0, sizeof(basetype) * data.size()); + std::fill(data.begin(), data.end(), 0); } void sb_bitset::resize(unsigned size) { |