summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/tgsi
diff options
context:
space:
mode:
authorEdB <[email protected]>2015-04-24 12:59:55 +0200
committerTom Stellard <[email protected]>2015-04-29 12:45:00 +0000
commit5ca9b23319db66d9768d46c0a7504b7bb079164a (patch)
tree731afaa27d31d53749bb25553ae26aab6a0cc65f /src/gallium/state_trackers/clover/tgsi
parent1b4a1d0049646e574565bab38b8ae935c1c45fae (diff)
clover: remove compat::string
Acked-by: Francisco Jerez <[email protected]> Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/tgsi')
-rw-r--r--src/gallium/state_trackers/clover/tgsi/compiler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/clover/tgsi/compiler.cpp b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
index 93dfeb54fa6..9e959f7bb2e 100644
--- a/src/gallium/state_trackers/clover/tgsi/compiler.cpp
+++ b/src/gallium/state_trackers/clover/tgsi/compiler.cpp
@@ -88,11 +88,12 @@ namespace {
}
module
-clover::compile_program_tgsi(const compat::string &source) {
- const char *body = source.find("COMP\n");
+clover::compile_program_tgsi(const std::string &source) {
+ const size_t body_pos = source.find("COMP\n");
+ const char *body = &source[body_pos];
module m;
- read_header({ source.begin(), body }, m);
+ read_header({ source.begin(), source.begin() + body_pos }, m);
read_body(body, m);
return m;